Hi,
Is it possible to "zfs send" to a harddrive connected via USB?
I would like to add another backup level in Sneakernet style where a person manually connects a 2TB harddrive in the evening of the 1st of each month. During the night, ZFS snapshots should be moved automatically via zfs send to this drive. On the next morning, the drive should be disconnected and is manually taken to a different location.
Generally this will be controlled by scripts and at the time when the drive is connected/disconnected, the FreeNAS system would be turned off (it is used as a backup server only).
The question is: How to I set this up and how does ZFS deal with ZFS volumes which are only temporarily available? I know e.g., that with LVM in Linux it is not so obvious when and how to remove LVs/VGs etc - it is not hot-plugging intended which probably goes also for ZFS.
My backup scripts already create a snapshot of the volumes after each backup (happens every day) and I would like to send the snapshots.
Ideally I would only send the current snapshot and only incremental changes since the last "zfs send" are sent and stored on the drive. So I would like to not only have a backup of these data but also an archive (as long as there is free space on the drive).
What I am also unclear is what happens if I delete a snapshot on my FreeNAS system which has previously been sent to the drive. Would incremental transfer/storage then still work?
Thanks!
Is it possible to "zfs send" to a harddrive connected via USB?
I would like to add another backup level in Sneakernet style where a person manually connects a 2TB harddrive in the evening of the 1st of each month. During the night, ZFS snapshots should be moved automatically via zfs send to this drive. On the next morning, the drive should be disconnected and is manually taken to a different location.
Generally this will be controlled by scripts and at the time when the drive is connected/disconnected, the FreeNAS system would be turned off (it is used as a backup server only).
The question is: How to I set this up and how does ZFS deal with ZFS volumes which are only temporarily available? I know e.g., that with LVM in Linux it is not so obvious when and how to remove LVs/VGs etc - it is not hot-plugging intended which probably goes also for ZFS.
My backup scripts already create a snapshot of the volumes after each backup (happens every day) and I would like to send the snapshots.
Ideally I would only send the current snapshot and only incremental changes since the last "zfs send" are sent and stored on the drive. So I would like to not only have a backup of these data but also an archive (as long as there is free space on the drive).
What I am also unclear is what happens if I delete a snapshot on my FreeNAS system which has previously been sent to the drive. Would incremental transfer/storage then still work?
Thanks!