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

Re: Help Using Tarsnap



On 07/18/10 17:15, Elliot Temple wrote:
> I wanted to see how big my backup would be (which BTW I couldn't figure out how to do without paying $5 first, which was lame).

Hmm, good point.  This is non-trivial since the size depends on how data is
split into chunks, which depends on some parameters in the key file, but I
could "fake" it to produce an estimated size without needing a key file.

> tarsnap -h --print-stats --dry-run --cachedir /nobackup/tarsnap/cache
> --keyfile /Users/curi/me/tarsnap/tarsnap.key -c -f home_backup /Users/curi/
> --exclude .Trash/ --exclude MobileSync/Backup/ --exclude Caches/ --exclude
> nobackup

Everything after the first non-option is considered to be a non-option -- you
need to put the --exclude foo options before /Users/curi/.

> I also got a lot of "Too many open files" errors. Is there general advice for dealing with that? Here's a paste:
> 
>> tarsnap: Python: could not open file: Too many open files
>> tarsnap: Info.plist: could not open file: Too many open files
>> tarsnap: version.plist: could not open file: Too many open files
>> tarsnap: InfoPlist.strings: could not open file: Too many open files
>> tarsnap: /Users/curi/cs/misc/tetris/dist/curi's blocks/curi's blocks.app/Contents/Frameworks/Python.framework/Versions/2.4/Frameworks/Python.framework/Versions/2.4/Frameworks/Python.framework/Versions/2.4/Frameworks/Python.framework/Versions/2.4/Frameworks/Python.framework/Versions/2.4/Frameworks/Python.framework/Versions/2.4/Frameworks/Python.framework/Versions/2.4/Frameworks/Python.framework/Versions/2.4/Frameworks/Python.framework/Versions/2.4/Frameworks/Python.framework/Versions/2.4/Frameworks/Python.framework/Versions/2.4/Frameworks/Python.framework/Versions/2.4/Frameworks/Python.framework/Versions/2.4/Frameworks/Python.framework/Versions/2.4/Frameworks/Python.framework/Versions/2.4/Frameworks/Python.framework/Versions/2.4/Frameworks/Python.framework/Versions/2.4/Frameworks/Python.framework/Versions/2.4/Frameworks/Python.framework/Versions/2.4/Frameworks/Python.framework/Versions/2.4/Frameworks/Python.framework/Versions/2.4/Frameworks/Python.framework/Versions/2.4/Fra
meworks/Python.framework/Versions/2.4/Frameworks/Python.framework/Versions/2.4/Frameworks/Python.framework/Versions/2.4/Frameworks/Python.framework/Versions/2.4/Frameworks/Python.framework/Versions/2.4/Frameworks/Python.framework/Versions/2.4/Frameworks/Python.framework/Versions/2.4/Frameworks/Python.framework/Versions/2.4/Frameworks/Python.framework/Versions/2.4/Frameworks/Python.framework/Versions/2.4/Frameworks/Python.framework/Versions/2.4/Frameworks/Python.framework/Versions/2.4/Frameworks/Python.framework/Versions/2.4/Frameworks/Python.framework/Versions/2.4/Frameworks/Python.framework/Versions/2.4/Frameworks/Python.framework/Versions/2.4/Frameworks/Python.framework/Versions/2.4/Frameworks/Python.framework/Versions/2.4/Frameworks/Python.framework/Versions/2.4/Frameworks/Python.framework/Versions/2.4/Frameworks/Python.framework/Versions/2.4/Frameworks/Python.framework/Versions/2.4/Frameworks/Python.framework/Versions/2.4/Frameworks/Python.framework/Versions/2.4/Framework
s/Python.framework/Versions/2.4/Frameworks/Python.framework/Versions/2.4/Frameworks/Python.framework/Versions/2.4/Frameworks/Python.framework/Versions/2.4/Frameworks/Python.framework/Versions/2.4/Frameworks/Python.framework/Versions/2.4/Frameworks/Python.framework/Versions/2.4/Frameworks/Python.framew

That's very odd; I've never seen it before.  I wonder if there's something odd
about OS X here -- can you produce a small test case which replicates this?

> And I got this:
> 
>> tarsnap: openvpnstart: could not open file: Permission denied
> 
> Should I run tarsnap with sudo?

If that's a file which you can't access as your normal user, then you'll need to
run tarsnap as root (or whatever user owns that file) if you want to archive
that file.

> The final output says:
>>                                        Total size  Compressed size
>> All archives                          59116321785      40518748896
>>   (unique data)                       39803209838      29930964057
>> This archive                          59116321785      40518748896
>> New data                              39803209838      29930964057
> 
> I don't understand why "all archives" and "this archive" are bigger than the
> unique/new data, since this is my first/only archive. Should I just ignore the
> larger number? Would it be 30 gigs on s3 or 40?

"All archives" means "how big are all the archives in total".  "Unique data"
means "how much space does Tarsnap need after removing duplicate blocks."
"This archive" means "how big is this archive".  "New data" means "how much
new data needed to be uploaded".

So you're using 30 GB of space on Tarsnap, but a simple compressed tarball
(without Tarsnap's duplicate block removal) would be 40 GB, and an uncompressed
tarball would be 59 GB.

Hope that helps,
-- 
Colin Percival
Security Officer, FreeBSD | freebsd.org | The power to serve
Founder / author, Tarsnap | tarsnap.com | Online backups for the truly paranoid