On Sat, 05 Mar 2016 01:23:08 +0100, lee wrote:

> I haven't found any documentation about how to deal with all the
> snapshots which would be created over time.  Can they be destroyed once
> the backup is finished?  A full backup took about 48 hours, so something
> faster is needed, and I don't want to end up with hundreds or thousands
> of snapshots by making new ones every day without being able to ever
> destroy them.

You might want to look at sys-fs/zfstools in my "graaff" overlay. It 
manages snapshots automatically. There are other similar tools as well.

> Basically, documentation says that such incremental backups are awesome
> because you get a 1:1 copy and only need to transfer what has changed
> after a previous backup as if you would use rsync, but that it's better
> than that and you can do it in like no time.  It doesn't really say how
> to actually do that and what to do with all the snapshots, though.

You can use "zfs send" and "zfs receive" for this. Once sent the snapshot 
can be deleted.

> I also can only guess that enabling compression on the target FS won't
> work unless compression is enabled at the source, though it would be
> rather useful to have the backups compressed while the source is not.
> You could do that with rsync, though, but I don't know how to access the
> snapshot for that.

zfs send and receive don't handle compression. You get and transmit the 
uncompressed data. So this works for any combination of compressions 
settings on the sending and receiving data sets.

Hans


Reply via email to