KEEP_SNAPSHOT allow amzfs-sendrecv to keep the latest snapshot at each level.
There is no way to keep all snapshot.
btw. amanda never use the snapshot to do recovery, snapshot are used only to do incremental backup.

You could change zfs_purge_snapshot to rename the snapshot instead of removing them. You could add a property 'keep-snapshot-days' or 'keep-snapshot-size' to keep snapshot for a some days or to remove them only if the size is above a threshold.

You can use 'amadmin ... find' on the server to find which backup are available.

It would be a great improvement if amrecover could use the snapshot for faster recovery, this is a lot more complicated.

Jean-Louis


On 11/04/2011 11:52 AM, Leon Meßner wrote:
On Fri, Oct 21, 2011 at 04:50:24PM +0200, Leon Meßner wrote:
Hi,
im currently trying to setup amanda to backup a ZFS. I noticed that if
the backup level gets not bumped, then amanda just creates a new
snapshot and renames? it to the old one. This forces one to do a
complete restore instead of just using the snapshot.
I did set the KEEP-SNAPSHOT property of amzfs-sendrecv to YES.
The line in amzfs-sendrecv which is responsible for this is:
amzfs-sendrecv:
     225     # destroy all snapshot of this level and higher
     226     $self->zfs_purge_snapshot($level, 9);

Is there a way to check if the snapshot that would be deleted is still
on any tape ? I had a look into
lib/perl5/site_perl/5.14.1/Amanda/Application/Zfs.pm but couldn't find
any function that help with that. BTW this is on amanda 3.2.2. I tried
upgrading but then local auth stopped working. Have there been changes
in said files in-between?

thanks,
Leon

Reply via email to