UnKwicks Posted April 21 Share Posted April 21 (edited) Hi I plan to use @SpaceInvaderOne‘s ZFS snapshot and replication script, to replace my current backup setup. I have two pools 1. data (HDD pool for main data) 2. cache (SSD pool for appdata etc) For data I want to - Snapshot my data pool - Replicate the data snapshots to a remote server (zfs) This is possible straightforward with the script For cache I want to - Snapshot my cache pool - Replicate my cache pool to the data pool (locally) - AND replicate my cache pool the remote server (zfs) As far as I understand the script, I have to choose if I want to replicate locally OR replicate to a remote destination. Can it be configured to replicate to both destinations? Another scenario could be pretty handy. When I attach a local USB disk I want to only replicate my latest snapshots feom data AND cache to the USB disk without creating a new snapshot. But this may be a whole new script I guess Edited April 21 by UnKwicks Added second scenario Quote Link to comment
SpaceInvaderOne Posted April 30 Share Posted April 30 The script has had a change that it can do the following 1. Snapshot and replicate either to a remote server or a local server. There can only be one destination in the script at present. 2. The script can snapshot and replicate a whole zfs pool. You can add exclusions for datasets which you dont want included. 3. It can replicate just one dataset specified 4. It can replicate with zfs replication or also to a location using rsync if the destination doesnt have zfs. (source location still must be zfs as for the rsync replication it mounts the newest snapshot the rsyncs that to destination) I will not add much more functionality to the script otherwise it just becomes to complicated to set up. I do plan on converting this (maybe) to a plugin at some point in the future when then i will add features Quote Link to comment
tgiannak Posted September 28 Share Posted September 28 (edited) On 4/30/2024 at 9:14 PM, SpaceInvaderOne said: The script has had a change that it can do the following 1. Snapshot and replicate either to a remote server or a local server. There can only be one destination in the script at present. 2. The script can snapshot and replicate a whole zfs pool. You can add exclusions for datasets which you dont want included. 3. It can replicate just one dataset specified 4. It can replicate with zfs replication or also to a location using rsync if the destination doesnt have zfs. (source location still must be zfs as for the rsync replication it mounts the newest snapshot the rsyncs that to destination) I will not add much more functionality to the script otherwise it just becomes to complicated to set up. I do plan on converting this (maybe) to a plugin at some point in the future when then i will add features Ed Nice work on the script as always! if i change the "update paths" at the end of the script like the photos im posting, to not make a folder like: pool/zfsfolder/pool_zfs_folder and make it like this: pool/zfsfolder to make an exact mirror on the other side? is that a problem? im doing it correctly on the script? Edited September 28 by tgiannak Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.