From owner-freebsd-questions@FreeBSD.ORG Thu Dec 17 22:39:43 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 49CA81065692 for ; Thu, 17 Dec 2009 22:39:43 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr5.xs4all.nl (smtp-vbr5.xs4all.nl [194.109.24.25]) by mx1.freebsd.org (Postfix) with ESMTP id B52628FC20 for ; Thu, 17 Dec 2009 22:39:42 +0000 (UTC) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr5.xs4all.nl (8.13.8/8.13.8) with ESMTP id nBHMdeCI092976; Thu, 17 Dec 2009 23:39:40 +0100 (CET) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id 77E4FBA7C; Thu, 17 Dec 2009 23:39:40 +0100 (CET) Date: Thu, 17 Dec 2009 23:39:40 +0100 From: Roland Smith To: bsd Message-ID: <20091217223940.GA33412@slackbox.xs4all.nl> References: <74692B50-D390-4CE4-9ED3-CA5B46CE8697@todoo.biz> <20091217171207.GB93764@slackbox.xs4all.nl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="cNdxnHkX5QqsyA0e" Content-Disposition: inline In-Reply-To: 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.20 (2009-06-14) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: Liste FreeBSD Subject: Re: incremental FTP backup program 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: Thu, 17 Dec 2009 22:39:43 -0000 --cNdxnHkX5QqsyA0e Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Dec 17, 2009 at 10:55:54PM +0100, bsd wrote: > Are there any specific scripting tools that I could use in order to achie= ve > that ? Well, /bin/sh and 'man sh' spring to mind. :-) Or use another scripting language if you are more familiar with that, e.g. perl or python. But since you are mainly invoking programs, a plain shell-script would be my first ch= oice. > From what you are describing a tool that would automate the dump process = and > take care of snapshots versions would be a must=E2=80=A6 ?? See e.g. the dodumps script on my scripts page; http://www.xs4all.nl/~rsmit= h/software/scripts.html It just names the dumps 'filesystem-dumplevel-date.dump', e.g. root-0-20091217.dump. You could extend this script to transfer the dum= ps via ftp, and remove old dumps from the FTP site. After testing, you could e= ven run it from cron. Start off with a level 0 dump, and then perform higher level dumps as often= as you need. Google for 'dump levels', and you'll find lots of different schem= es, e.g. http://docs.sun.com/app/docs/doc/817-5093/bkupconcepts-21?a=3Dview I would urge you to keep things simple. The more complicated the your solution, the easier things can go wrong. One caveat about dump though. If one of your filesystems contains just one = big database in a huge file, dump will copy the whole file even if just one byte has changed. In such a case you should see if the database has tools to just copy the records changed since the last backup and use that instead. 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) --cNdxnHkX5QqsyA0e Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.13 (FreeBSD) iEYEARECAAYFAksqsywACgkQEnfvsMMhpyV/pQCbBKGRtCdz3IGrK7JIxiGCgWM0 YFgAn2rzjF84LTQYcBdV6/L21MHH19Uq =ZM+/ -----END PGP SIGNATURE----- --cNdxnHkX5QqsyA0e--