Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Mar 2013 12:04:25 -0500
From:      "David Magda" <dmagda@ee.ryerson.ca>
To:        "Volodymyr Kostyrko" <c.kworr@gmail.com>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: Musings on ZFS Backup strategies
Message-ID:  <1e4c24a68e76a279eaf4dc4f7c0156d3.squirrel@webmail.ee.ryerson.ca>
In-Reply-To: <5134C6C2.9020009@gmail.com>
References:  <5130BA35.5060809@denninger.net> <5130EB8A.7060706@gmail.com> <2B318078-F863-4415-8DAE-94EE4431BF4C@ee.ryerson.ca> <5134C6C2.9020009@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, March 4, 2013 11:07, Volodymyr Kostyrko wrote:
> 02.03.2013 03:12, David Magda:
>> There are quite a few scripts out there:
>>
>> 	http://www.freshports.org/search.php?query=zfs
>
> A lot of them require python or ruby, and none of them manages
> synchronizing snapshots over network.

Yes, but I think it is worth considering the creation of snapshots, and
the transfer of snapshots, as two separate steps. By treating them
independently (perhaps in two different scripts), it helps prevent the
breakage in one from affecting the other.

Snapshots are not backups (IMHO), but they are handy for users and
sysadmins for the simple situations of accidentally files. If your network
access / copying breaks or is slow for some reason, at least you have
simply copies locally. Similarly if you're having issues with the machine
that keeps your remove pool.

By keeping the snapshots going separately, once any problems with the
network or remote server are solved, you can use them to incrementally
sync up the remote pool. You can simply run the remote-sync scripts more
often to do the catch up.

It's just an idea, and everyone has different needs. I often find it handy
to keep different steps in different scripts that are loosely coupled.

>> This allows one to get a quick list of files and directories, then use
>> tar/rsync/cp/etc. to do the actual copy (where the destination does not
>> have to be ZFS: e.g., NFS, ext4, Lustre, HDFS, etc.).
>
> I know that but I see no reason in reverting to file-based synch if I
> can do block-based.

Sure. I just thought I'd mention it in the thread in case other do need
that functionality and were not aware of "zfs diff". Not everyone does or
can do pool-to-pool backups.





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1e4c24a68e76a279eaf4dc4f7c0156d3.squirrel>