[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Exclude patterns
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Jerry,
I'm also fairly new to tarsnap and asked a similar question here a
couple of weeks ago.
See message ID <53949731.90002@barrowhillfarm.org.uk>
You can add exclude paths to tarsnap.conf. The important thing is to
use the whole path, anchoring it to the root of the file system, eg.
exclude /home/user/Documents
exclude /home/user/something_else
Jamie Landeg-Jones also suggested, in that thread, using the --nodump
option, but I haven't had a chance to try that yet. Jamie uses it on
his BSD system, I'm using Linux. Both *nixes, so it should work.
Jamie's other good suggestion is to use the --dry-run option while
you're experimenting with different paths and settings.
Bob
On 27/06/14 16:53, jerry wrote:
> Hello,
>
> As a first try of tarsnap, I tried archiving my /root directory,
> which I knew was pretty small. Or was it? Not only did it take a
> long time, but the resulting archive was *BIG*. As in two
> gigabytes - ish. I did a du -b and discovered a large directory
> called .cpan. OK, it's the perl library build stuff. Every time
> I install a new Perl library, all the build stuff winds up in this
> .cpan directory. I don't know if Perl will work right anymore if I
> delete this stuff, but I'm pretty sure I have no interest in
> backing it up, because I can always get it off CPAN again.
>
> That leads me to the general subject of excludes. I see that one
> can specify them in the tarsnap command line. There's also some
> verbiage about putting them in config files. But no examples of
> that ( that I could find ). Can a config file have multiple
> -exclude lines?
>
> In general, I like to have excludes in a separate file. Usually
> named "excludes", at the top of each tree I am backing up.
>
> - Jerry Kaidor ( jerry@tr2.com )
- --
Bob Williams
System: Linux 3.11.10-17-desktop
Distro: openSUSE 13.1 (x86_64) with KDE Development Platform: 4.13.2
Uptime: 06:00am up 12:16, 3 users, load average: 0.11, 0.19, 0.13
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iEYEARECAAYFAlOtpSQACgkQ0Sr7eZJrmU6uNACgku01r58R7o2TjEnFRestHQEC
lSEAoKiaXt9OhKDwcYwLpqNahNJowdWi
=CBbO
-----END PGP SIGNATURE-----