Syncoid To usb retention policy ZFS?
-
Hi,
I was wondering if someone could shed some light on the issue im having, currently trying to backup my vm using ZFS
currently using syncoid to backup to a usb which i have accomplished by this commandsyncoid -r rpool/data/vm-125-disk-0 usbbak/vm-125-disk
the issue is that there is no retention policy something like to keep 4 days or so 4 snapshots. i checked the manpage does not say anything about retention any ideas?
Thank you
-
syncoid is an under the hood tool of sanoid.
You need to configure the parent tool for what you want to do.
What is the contents of /etc/sanoid/sanoid.conf
-
Thanks for the reply i did realize something was odd, i did configure the sanoid.conf but was taking the snapshots within the server and not sending to the USB drive
The idea is to take snapshots every day and keep around 4, what im confused on the daily = not sure if its to take 1 time a day or delete after 1 snapshot? and as for the cronjob i have noticed it does it automatic even if i dont put it in the cronjob?Thank you
###################################### # This is a sample sanoid.conf file. # # It should go in /etc/sanoid. # ###################################### [rpool/data/vm-125-disk-0] use_template = production ############################# # templates below this line # ############################# # name your templates template_templatename. you can create your own, and use them in your module definitions above. [template_production] frequently = 0 #hourly = 36 daily = 1 #monthly = 3 #yearly = 0 autosnap = yes autoprune = yes
-
@killmasta93 said in Syncoid To usb retention policy ZFS?:
The idea is to take snapshots every day and keep around 4, what im confused on the daily = not sure if its to take 1 time a day or delete after 1 snapshot?
Do you want to keep 4 dailys. So daily = 4
-
Thanks for the reply, the issue is that sanoid.conf does not send the snapshot to the usb but syncoid does, or does having that template automatic prune the snapshots?