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

Re: ANN: tarsnapper



Excerpts from Michael Elsdörfer's message of 2010-08-28 15:45:47 +0200:
> I'd like to let everybody know about a small wrapper around tarsnap that
> I've written:
> 
> http://github.com/miracle2k/tarsnapper
> 
> The main thing I needed was something like a grandfather-father-son
> scheme to expire backups, but without encoding the backup type in the
> filename, and without having any expectations about when the backup
> script runs or has run in the past.
> 
> Instead I tried to come up with an approach which, given a list of
> backups and a list of deltas, tries to delete old backups while matching
> the requested deltas as closely as possible.
> 
> I've been using it on both my desktop and a server for the last two
> months, and it seems to work very well.
> 
> To help me define my backups, the script can also load a list of backup
> jobs from a YAML file.
> 
> Michael

When I run tarsnappper like this

tarsnapper --target t42-home-etc-\$date --sources /home/a/ /etc/ --deltas 1d 30d 360d - make

I get the following error

 File "/usr/lib/python2.6/site-packages/tarsnapper/expire.py", line 46,
 in expire
     assert len(deltas) >= 2, "At least two deltas are required"
	 TypeError: object of type 'NoneType' has no len()

Not sure what I am doing wrong..
--