[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: .exclude file or similar?



On Sun, Jun 29, 2014 at 06:04:01AM -0700, jerry wrote:
> Getting back to loving Unix:  I wrote a quickie wrapper for tarsnap in
> Perl.  It goes and gets the excludes file from the top directory of
> the tree being backed up, and creates a tarsnap command line.

This has already been discussed a few months ago.  For instance, I
posted the following one-liner to generate a single exclude-file
collecting the content of .exclude in sub-directories:

On Sun, Mar 09, 2014 at 11:11:59AM +0000, Gabriel Kerneis wrote:
> find / -name .exclude -execdir xargs -a {} readlink -m \; > exclude.file

It's a little less robust than your perl script, though (no support for
comments, and probably not the semantics you would expect for top-level
wildcards).

On a related note: shall we start making a FAQ for this list?

-- 
Gabriel