Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 08 Jan 2013 15:57:39 -0200
From:      schultz@ime.usp.br
To:        freebsd-questions@freebsd.org
Subject:   Re: Backup with mtree and rsync?
Message-ID:  <20130108155739.15823jwfkzc6skr7@webmail.ime.usp.br>
In-Reply-To: <44obgztytu.fsf@lowell-desk.lan>
References:  <20130105161256.49797e7viwwtqfc8@webmail.ime.usp.br> <44obgztytu.fsf@lowell-desk.lan>

next in thread | previous in thread | raw e-mail | index | archive | help
> I don't see any way to do this directly. What you probably want to do is
> use find(1) to pick out the new files to check, and then merge the
> changes into the old mtree(8) spec. Not trivial, but the spec syntax is
> intended to be easy to parse, so it shouldn't be that hard either.

What I am currently doing somewhat fits your description. I feed find
output into a C program that merges the old description with the
directory state to produce a new description. However, I use a format
different than mtree. I was seeking a shorter, more elegant, solution.

> It's possible that the mtree support in tar(8) might be able to do it,
> but it would probably be a lot slower.

Wait, can tar be used to remove files?





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130108155739.15823jwfkzc6skr7>