[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Exclude patterns
jerry <jerry@tr2.com> wrote:
> Damn I love Unix. Tarsnap doesn't do exclude files. I REALLY want
> exclude files. I like having the excludes enumerated as close as
> possible to the actual files. And that --nodump thing leaves me
> completely cold. An invisible flag that affects how things work?
Invisible flag? That's why I love FreeBSD! :-)
| d[-_-]b dyslexicfish> l /
| total 85
| 4 drwxr-xr-x 19 root wheel - 512 Jun 10 03:36 .
| 4 drwxr-xr-x 19 root wheel - 512 Jun 10 03:36 ..
| 8 -r--r--r-- 1 root wheel nodump 6199 Jan 3 2012 COPYRIGHT
| 4 drwxr-xr-x 2 root wheel nodump 1024 Jan 3 2012 bin
| 4 drwxr-xr-x 8 root wheel nodump 1024 Jan 28 2013 boot
| 4 dr-xr-xr-x 15 root wheel nodump 512 Dec 15 2013 cdrom
| 1 dr-xr-xr-x 4 root wheel - 512 Jun 23 00:45 dev
| 4 -rw------- 1 root wheel nodump 4096 Jan 31 23:07 entropy
| 4 drwxr-xr-x 20 root wheel - 2048 Jun 10 02:31 etc
| 4 drwxr-xr-x 3 root wheel nodump 1536 Jul 30 2012 lib
| 4 drwxr-xr-x 3 root wheel nodump 512 Jul 30 2012 libexec
| 4 drwxr-xr-x 2 root wheel nodump 512 Jan 3 2012 media
| 4 drwxr-xr-x 2 root wheel nodump 512 Jan 3 2012 mnt
| 4 dr-xr-xr-x 2 root wheel nodump 512 Jan 3 2012 proc
| 4 drwxr-xr-x 2 root wheel nodump 2560 Jul 30 2012 rescue
| 4 drwxr-xr-x 2 root wheel nodump 512 Jun 23 00:34 root
| 4 drwxr-xr-x 2 root wheel nodump 2560 Jul 30 2012 sbin
| 0 lrwxr-xr-x 1 root wheel nodump 11 Jan 3 2012 sys -> usr/src/sys
| 4 drwxr-xr-x 3 root wheel nodump 512 Feb 2 04:10 temp
| 4 drwxrwxrwt 2 root wheel nodump 512 Jun 29 19:54 tmp
| 4 drwxr-xr-x 13 root wheel - 512 Jun 10 05:02 usr
| 4 drwxr-xr-x 23 root wheel - 512 Jun 23 00:45 var
| d[-_-]b dyslexicfish>
> 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. Here it is:
Nice... I did similar with AWK... I hate PERL with an irrational passion!
Cheers, Jamie