Omry Yadan
Cadet
- Joined
- Sep 12, 2016
- Messages
- 6
Hi all,
I am migrating from OpenIndiana (Yay!), so far I am impressed by how easily things are moving along.
Setup was overall very easy (except the part where I didn't realize I can't just boot from the Installation USB and I need another one to install onto.
The installation process was not immediately obvious to me, initially I thought I would boot from the USB and add the disks to the ZFS from there, which led me to install FreeNAS on all 6 disks :).
Later I realize the right way to go is to install it onto a second USB and than boot from that one.
the process seems a bit redundant, why not just provide the image for the second USB in the first place?
Anyway, a few years ago (2009, time files!) - I wrote a little utility that combines ZFS snapshots with Rsync called Zync (ZFS + Rsync = Zync, the descirption and documentaiton is on the link).
The idea is that cron run Zync every day, it will use rsync over ssh to backup remote servers to a specific directory for each server
and then takes a zfs snapshot of that directory.
this way you get a daily snapshots of your remote server, each one takes pretty much only the delta from the first snapshot.
in addition, Zync supports include and exclude directories per server, snapshot retention policy (how many days to keep), and inplace inplace writing (rsync --inplace) which minimize writes and thus makes the snapshot more efficient.
Looking at the Rsync support in FreeNAS, this combination of features does not exactly seems available (correct me if I am wrong).
I would like to get Zync to run in FreeNAS and I am not sure what is the right way to do it.
if in the process I can make it something that is easily usable to someone else (like a plugin maybe) that would be cool as well.
The dependencies for it is a JVM (it's written in Java), rsync and zfs binaries.
I am not sure a a jailed program will be able to access the host zfs pools.
any hints or help on getting this done will be appreciated.
I am migrating from OpenIndiana (Yay!), so far I am impressed by how easily things are moving along.
Setup was overall very easy (except the part where I didn't realize I can't just boot from the Installation USB and I need another one to install onto.
The installation process was not immediately obvious to me, initially I thought I would boot from the USB and add the disks to the ZFS from there, which led me to install FreeNAS on all 6 disks :).
Later I realize the right way to go is to install it onto a second USB and than boot from that one.
the process seems a bit redundant, why not just provide the image for the second USB in the first place?
Anyway, a few years ago (2009, time files!) - I wrote a little utility that combines ZFS snapshots with Rsync called Zync (ZFS + Rsync = Zync, the descirption and documentaiton is on the link).
The idea is that cron run Zync every day, it will use rsync over ssh to backup remote servers to a specific directory for each server
and then takes a zfs snapshot of that directory.
this way you get a daily snapshots of your remote server, each one takes pretty much only the delta from the first snapshot.
in addition, Zync supports include and exclude directories per server, snapshot retention policy (how many days to keep), and inplace inplace writing (rsync --inplace) which minimize writes and thus makes the snapshot more efficient.
Looking at the Rsync support in FreeNAS, this combination of features does not exactly seems available (correct me if I am wrong).
I would like to get Zync to run in FreeNAS and I am not sure what is the right way to do it.
if in the process I can make it something that is easily usable to someone else (like a plugin maybe) that would be cool as well.
The dependencies for it is a JVM (it's written in Java), rsync and zfs binaries.
I am not sure a a jailed program will be able to access the host zfs pools.
any hints or help on getting this done will be appreciated.
Last edited: