On Mon, 2 Oct 2023, John Jason Jordan wrote:

When I sat down at the computer this morning the gxmessage window was in
the middle of the screen announcing that rsync ran at 3am and at 4am to
make mirrors of / and ~/ with exit code 0. I had put a dummy file on both
partitions before going to bed, so I checked and it was in both mirrors.
Problem solved. Except that I still haven't figured out where cron saves
the files. At least now I have the sense to copy them to a text file in
~/.

John,

I, too, don't know where my system keeps my (and root's) crontabs. But, that
doesn't matter to me. The files I enter there are actually in either
~/shell-scripts/ (for my crontabs) or in /root for root's crontabs. I
suggest you use the same storage devices. These files are date-time
specific; for example, in my crontab I have:

# run postgres backup daily at 11:15 pm
#15 23 * * mon-fri /home/rshepard/shell-scripts/postgres-daily-backup.sh

# process spam-uncaught
10 2 * * sun /home/rshepard/shell-scripts/process-spam.sh

Some of root's crontab files are:
# dirvish backup each day at 00:30.
30 0 * * * /root/dirvish-backup.sh

# copy bkup1 to bkup2 each day at 01:00
0 1 * * * /root/copy-backup.sh

# postfix mail log report
45 3 * * * /usr/bin/pflogsumm.pl -d yesterday /var/log/maillog.1

HTH,

Rich





Reply via email to