From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1NN6qS-0002bN-6x for garchives@archives.gentoo.org; Tue, 22 Dec 2009 15:40:20 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 497A9E0A88; Tue, 22 Dec 2009 15:39:57 +0000 (UTC) Received: from mail.digimed.co.uk (82-69-83-178.dsl.in-addr.zen.co.uk [82.69.83.178]) by pigeon.gentoo.org (Postfix) with ESMTP id 0DB8CE0A88 for ; Tue, 22 Dec 2009 15:39:56 +0000 (UTC) Received: from digimed.co.uk (grunthos.digimed.co.uk [192.168.1.4]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.digimed.co.uk (Postfix) with ESMTPSA id 4B3ED96D12 for ; Tue, 22 Dec 2009 15:39:56 +0000 (GMT) Date: Tue, 22 Dec 2009 15:39:49 +0000 From: Neil Bothwick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Writing a bash script or thinking about it anyway. Message-ID: <20091222153949.5c4865d2@digimed.co.uk> In-Reply-To: References: <4B303B5D.2060400@gmail.com> Organization: Digital Media Production X-Mailer: Claws Mail 3.7.3cvs45 (GTK+ 2.18.5; i686-pc-linux-gnu) X-GPG-Fingerprint: 7260 0F33 97EC 2F1E 7667 FE37 BA6E 1A97 4375 1903 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/oVk+JZ_hU7.k=qWlJj7Wfxy"; protocol="application/pgp-signature" X-Archives-Salt: e85b09a4-eec7-4428-998e-3d67f4fdbb50 X-Archives-Hash: 8f34fc78b071a4e8756f471bb4691ac3 --Sig_/oVk+JZ_hU7.k=qWlJj7Wfxy Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Tue, 22 Dec 2009 16:08:18 +0100, Ward Poelmans wrote: > You should take a look at rsnapshot ( http://rsnapshot.org/ ). I use > it and it works perfectly. But it's written in perl and not bash, i'm > afraid. That misses the point. This isn't really about making backups, it's about learning to write shell scripts. Backing up is just the project that Dale has chosen for this first effort, at least that's how I read it. Having said that, you need an underlying program to perform the backups, and the main choices are tar and rsync. Rsync has all the advantages already mentioned, but it does need a lot of space and needs the filesystem to be used for backups to support all the metadata of the source. Tar handles both of these issues, but incremental backups are more complicated to make and restore. On the other hand, you do get history, while rsync only has the most recent copy of the file. If you found the file was corrupt just after an rsync backup, touch! I really like BackupPC, but that's totally irrelevant to the original question. --=20 Neil Bothwick We all know what comes after 'X', said Tom, wisely. --Sig_/oVk+JZ_hU7.k=qWlJj7Wfxy Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.13 (GNU/Linux) iEYEARECAAYFAksw6EoACgkQum4al0N1GQOoawCfUAzczW3reGDe4khCsO/qMaVs MUYAmwRg48Vfr5nAM2zCGbLc6gh+52ek =xeWO -----END PGP SIGNATURE----- --Sig_/oVk+JZ_hU7.k=qWlJj7Wfxy--