From owner-freebsd-questions@FreeBSD.ORG Thu Dec 17 17:12:09 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 48F0210656D3 for ; Thu, 17 Dec 2009 17:12:09 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr11.xs4all.nl (smtp-vbr11.xs4all.nl [194.109.24.31]) by mx1.freebsd.org (Postfix) with ESMTP id B48198FC28 for ; Thu, 17 Dec 2009 17:12:08 +0000 (UTC) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr11.xs4all.nl (8.13.8/8.13.8) with ESMTP id nBHHC7i1024216; Thu, 17 Dec 2009 18:12:07 +0100 (CET) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id 2E773BA90; Thu, 17 Dec 2009 18:12:07 +0100 (CET) Date: Thu, 17 Dec 2009 18:12:07 +0100 From: Roland Smith To: bsd Message-ID: <20091217171207.GB93764@slackbox.xs4all.nl> References: <74692B50-D390-4CE4-9ED3-CA5B46CE8697@todoo.biz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="JP+T4n/bALQSJXh8" Content-Disposition: inline In-Reply-To: <74692B50-D390-4CE4-9ED3-CA5B46CE8697@todoo.biz> 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 17:12:09 -0000 --JP+T4n/bALQSJXh8 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Dec 17, 2009 at 05:29:54PM +0100, bsd wrote: > Hello,=20 >=20 > I have been provided with a 1To backup space by my hosting company=E2=80= =A6 > unfortunately It is only accessible by FTP which does not allow me to do = the > regular backup / restore I use to do using RSYNC. >=20 >=20 > What are the options I have in order to do the backup / restore of the fi= les > knowing that : >=20 > 1. I would like to have a time based backup solution (incremental with > sub-folder for daily backup so I can restore files from xxx days ago). >=20 > 2. I need to use ftp as a transport >=20 > 3. Some of my servers have limited space so doing a local sync then FTP w= ill > not be possible. >=20 > 4. If possible I would like a bullet proof solution ideally "well known" | > tested and available from the port tree. There are several avenues available even with the tools in the base system. One of those is to use dump(8), assuming you are using UFS filesystems, of course. Make regular dumps (of different levels), compress them using bzip2(1), encrypt the compressed dumpfiles using openssl(1) (do _not_ use crypt(1)!) and use ftp(1) to transfer them to the hosting company. Another way is to use mtree(8). You can use this to generate a file contain= ing the state of a filesystem hierarchy. Running it against a previously saved specification can yield a list of files that have changed. Use tar and bzip2 to create an archive of the files that have changed. Encrypt and send same = as above.=20 All these programs come with the base system, you would just need to script them. 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) --JP+T4n/bALQSJXh8 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.13 (FreeBSD) iEYEARECAAYFAksqZmcACgkQEnfvsMMhpyX8iwCgpRC1o2aOtMj7B0SBiR13Uj6/ O2wAn1ZCw0OEQ0N80OUmdZYxujTzuDKA =sFoF -----END PGP SIGNATURE----- --JP+T4n/bALQSJXh8--