[Wylug-help] Cron & anacron
RichardA
pingvin at simaric.net
Wed Nov 23 18:20:07 GMT 2005
Having finally accepted that I'm too lazy to back up manually, and that
700MB CDRs won't make much of a dent in 68GB of data, I set up a mirror
of /home on another machine, to be updated by rsync over ssh, with
passwordless pgp keys. This works.
Then I put the script in crontab to run at midnight each day. My PC is
rarely running at midnight, but I thought anacron would pick up the task
the first time I booted -- it doesn't seem to.
Here are some details, in case they help, or I've made a dumb mistake
(cetri is the client, dva is the server):
----------------------------------------------------
root at cetri ~ # crontab -l
* 0 * * * /home/richard/bin/rsync.sh
root at cetri ~ # cat /home/richard/bin/rsync.sh
rsync -avz --delete --exclude-from=/home/richard/bin/rsync.exclude
/home/ dva:/shared/backup/cetri
root at cetri ~ # cat /home/richard/bin/rsync.exclude
# Firefox cache
+ Cache/
- **/Cache/**
# Thumbnails
+ .thumbnails/
- **/.thumbnails/**
# Trash
+ .Trash/
- **/.Trash/**
----------------------------------------------------
Does anacron automatically look at any due cron jobs, or does it have to
be told about them? And does cron write to a log file?
Thanks,
Richard (out of his depth, but having fun)
More information about the Wylug-help
mailing list