From owner-freebsd-questions@FreeBSD.ORG Fri Jan 30 19:22:11 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 44037106566C for ; Fri, 30 Jan 2009 19:22:11 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr10.xs4all.nl (smtp-vbr10.xs4all.nl [194.109.24.30]) by mx1.freebsd.org (Postfix) with ESMTP id B55FE8FC14 for ; Fri, 30 Jan 2009 19:22:10 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr10.xs4all.nl (8.13.8/8.13.8) with ESMTP id n0UJM9j8027292; Fri, 30 Jan 2009 20:22:09 +0100 (CET) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id F198BB853; Fri, 30 Jan 2009 20:22:08 +0100 (CET) Date: Fri, 30 Jan 2009 20:22:08 +0100 From: Roland Smith To: "drcubi@yahoo.com" Message-ID: <20090130192208.GA15415@slackbox.xs4all.nl> References: <229610.47419.qm@web51408.mail.re2.yahoo.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="GvXjxJ+pjyke8COw" Content-Disposition: inline In-Reply-To: <229610.47419.qm@web51408.mail.re2.yahoo.com> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.18 (2008-05-17) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: freebsd-questions@freebsd.org Subject: Re: Backup to spare drive (rsync / crontab) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jan 2009 19:22:11 -0000 --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--