Date: Fri, 30 Jan 2009 20:22:08 +0100 From: Roland Smith <rsmith@xs4all.nl> To: "drcubi@yahoo.com" <drcubi@yahoo.com> Cc: freebsd-questions@freebsd.org Subject: Re: Backup to spare drive (rsync / crontab) Message-ID: <20090130192208.GA15415@slackbox.xs4all.nl> In-Reply-To: <229610.47419.qm@web51408.mail.re2.yahoo.com> References: <229610.47419.qm@web51408.mail.re2.yahoo.com>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] On Fri, Jan 30, 2009 at 10:37:19AM -0800, drcubi@yahoo.com wrote: > 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 - the daily (/backup is a seperate physical drive) : > > #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 If this is the complete script, you've forgotten to start the file with the shell invocation: #!/bin/sh > 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. Scripts started from the shell prompt will run without the #! line (they will be interpreted by a subshell). Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.10 (FreeBSD) iEYEARECAAYFAkmDU2AACgkQEnfvsMMhpyW/LwCdGvpkXDXdjzD8uJQCbLOrDgS8 lG0AoIwEMg9cXM3QFIzmhSxQPnZTF6Qr =g+/W -----END PGP SIGNATURE-----help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090130192208.GA15415>
