Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Jan 2009 10:37:19 -0800 (PST)
From:      "drcubi@yahoo.com" <drcubi@yahoo.com>
To:        freebsd-questions@freebsd.org
Subject:   Backup to spare drive (rsync / crontab)
Message-ID:  <229610.47419.qm@web51408.mail.re2.yahoo.com>

next in thread | raw e-mail | index | archive | help
I am using rsync and crontab to perform scheduled backups on FreeBSD AMD64 =
Rel. 7.0
I am following process described here for rsync :
http://samba.anu.edu.au/rsync/examples.html

I have a backup script's created for daily, weekly, monthly.
This is one example=A0 -=A0 the daily=A0 (/backup is a seperate physical dr=
ive) :

#daily backup script
rsync -a --delete /usr/home/data/Access/ /backup/daily/Access
rsync -a --delete /usr/home/data/Templates/ /backup/daily/Templates
rsync -a --delete /usr/home/QBdata/ /backup/daily/QBdata
rsync -a --delete /usr/home/reception1/ /backup/daily/reception1
rsync -a --delete /usr/home/reception2/ /backup/daily/reception2
rsync -a --delete /usr/home/reception3/ /backup/daily/reception3
rsync -a --delete /usr/home/data/Files/ /backup/daily/Files

All files created where chmod'd with +x, then I test the scripts by running=
 them manually and all three, daily, weekly & monthly work fine.

FInal step, I add to root=A0crontab, by using :

crontab -e=A0

I added following lines :

1=A0=A0=A0=A0=A0=A0 23=A0=A0=A0=A0=A0=A0 30=A0=A0=A0=A0=A0 *=A0=A0=A0=A0=A0=
=A0 *=A0=A0=A0=A0=A0=A0 /usr/local/sbin/backup/monthly
1=A0=A0=A0=A0=A0=A0 21=A0=A0=A0=A0=A0=A0 *=A0=A0=A0=A0=A0=A0 *=A0=A0=A0=A0=
=A0=A0 0=A0=A0=A0=A0=A0=A0 /usr/local/sbin/backup/weekly
1=A0=A0=A0=A0=A0=A0 23=A0=A0=A0=A0=A0=A0 *=A0=A0=A0=A0=A0=A0 *=A0=A0=A0=A0=
=A0=A0 1-5=A0=A0=A0=A0 /usr/local/sbin/backup/daily

crontab -l shows all is OK as well.

But the scheduled backups never happen. I must be doing something wrong, bu=
t can't figure out what.

All help would be gratefully appreciated.

Thank you,

Darren

=A0
=A0

=A0=0A=0A=0A      



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?229610.47419.qm>