Skip site navigation (1)Skip section navigation (2)
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>

next in thread | previous in thread | raw e-mail | index | archive | help

--GvXjxJ+pjyke8COw
Content-Type: text/plain; charset=iso-8859-15
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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 AMD6=
4 Rel. 7.0
> I am following process described here for rsync :
> http://samba.anu.edu.au/rsync/examples.html
>=20
> 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 =
drive) :
>=20
> #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
=20
> 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).=20

Roland
--=20
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)

--GvXjxJ+pjyke8COw
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.10 (FreeBSD)

iEYEARECAAYFAkmDU2AACgkQEnfvsMMhpyW/LwCdGvpkXDXdjzD8uJQCbLOrDgS8
lG0AoIwEMg9cXM3QFIzmhSxQPnZTF6Qr
=g+/W
-----END PGP SIGNATURE-----

--GvXjxJ+pjyke8COw--



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