Date: Tue, 8 Jan 2013 20:39:37 +0200 From: Ciprian Dorin Craciun <ciprian.craciun@gmail.com> To: schultz@ime.usp.br Cc: freebsd-questions@freebsd.org Subject: Re: Backup with mtree and rsync? Message-ID: <CA%2BTk8fwLQNZA3TRG_kDbe45uTmQ2_Q2_1FKLdVRBivKV04xLeg@mail.gmail.com> In-Reply-To: <20130105161256.49797e7viwwtqfc8@webmail.ime.usp.br> References: <20130105161256.49797e7viwwtqfc8@webmail.ime.usp.br>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Jan 5, 2013 at 8:12 PM, <schultz@ime.usp.br> wrote: > I have been wondering whether it is possible to create a backup system > using mtree and rsync. Essentially, the user would create a mtree > specification of the source directory and copy it over to the destination > directory with rsync. Any changes in the destination could then be > detected before restoring with the mtree specification, which should > contain strong hashes of the files and should not contain the nlink > keyword. A little bit off-topic, but there is a small tool that does something similar to your suggested `mtree` usage, but specifically tailored for backups, `rdup`: http://miek.nl/projects/rdup Although I've not used it myself (I use `rdiff-backup` and on Linux), the idea is pretty similar with what you want to achieve: * you run `rdup` with an old "descriptor file" plus a target path, and in turn it generates: * a new "descriptor file"; * a list of files that should be backed up; * you then decide what you do with the list of files to be backed-up (i.e. put them in a `tar`, `rysnc` them to a server, etc.); Hope it helps, Ciprian.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BTk8fwLQNZA3TRG_kDbe45uTmQ2_Q2_1FKLdVRBivKV04xLeg>