Tarsnap Mastery: Online Backups for the Truly Paranoid (IT Mastery Book 6) by Michael W Lucas

Tarsnap Mastery: Online Backups for the Truly Paranoid (IT Mastery Book 6) by Michael W Lucas

Author:Michael W Lucas [Lucas, Michael W]
Language: eng
Format: epub
Tags: nonfiction
Publisher: Tilted Windmill Press
Published: 2015-03-02T06:00:00+00:00


include

Tarsnap defaults to letting you back up the entire system. The presence of an include option in tarsnap.conf reverses that default, so that you can only back up explicitly listed directories.

include /home

include /var/log

These two options, without any other include or exclude directives, tell tarsnap(1) that it can only back up files in these directories. If you attempt to back up a directory other than these, tarsnap runs but the results show that your new archive is practically empty.

# tarsnap -cf etc /etc

Total size Compressed size

All archives 192 MB 164 MB

(unique data) 190 MB 163 MB

This archive 1.4 kB 1.2 kB

New data 1.4 kB 1.2 kB

1.2 kB is far too small for a new archive, even with deduplication.

I deliberately did not put the trailing slash on the directories in the include statements. If I specified the trailing slash, I’d need to use the slash on the command line as well. I’m human, so I’m by definition forgetful and sloppy. I want Tarsnap to do the right thing even when I fail to be precise.

When you start with the include and exclude options, verify which files your backup captures by using the --dry-run and –v options before running an actual backup. A –v on the previous command would have shown that the archive contains nothing.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.