Change ZFS snapshot name using pve-zsync

Whatever

Active Member
Nov 19, 2012
267
13
38
Is there any way to change ZFS snapshot name format in order to be able to sync VMs/pools with external ZFS (FreeNas box for example)

In particular FreeNAS does not support ":" and/or "-" in snapshot name:
Code:
root@pve02A:/etc# pve-zsync create --source tank --dest 172.16.252.254:tank/datastore/pve/pve_zsync --verbose --max                                                                     --name test1
Use of uninitialized value in concatenation (.) or string at /usr/sbin/pve-zsync line 902.
send from @ to tank@rep_test1_2016-11-24_18:33:39 estimated size is 9.50K
total estimated size is 9.50K
TIME        SENT   SNAPSHOT
Job --source tank --name test1 got an ERROR!!!
ERROR Message:
COMMAND:
        zfs send -v -- tank@rep_test1_2016-11-24_18:33:39 | ssh -o 'BatchMode=yes' root@172.16.252.254 -- zfs recv                                                                     tank/datastore/pve/pve_zsync/
GET ERROR:
        cannot receive: invalid name
 

fireon

Famous Member
Oct 25, 2010
3,821
304
103
39
Austria/Graz
iteas.at
Not tested with snapshot, but normal dataset can be renamed. For example:
Code:
zfs rename -p rpool/backup-pvezsync/steamlinux rpool/backup-pvezsync/virtu01/steamlinux
 

wolfgang

Proxmox Staff Member
Staff member
Oct 1, 2014
6,496
480
103
Hi,

no it is hard coded in pve-zsync.
 

Alessandro 123

Active Member
May 22, 2016
636
23
38
38
Sorry for the OT, but i'm a ZFS newby.
The command wrote in the first post is making a local ZFS snapshot and send it to a different server ?
 

wolfgang

Proxmox Staff Member
Staff member
Oct 1, 2014
6,496
480
103
The first job(sync) is not quick but yes and yes.
 

Alessandro 123

Active Member
May 22, 2016
636
23
38
38
What happens if on the destination server i'll delete a middle snapshot or the older snapshot? the following are still consistent even loosing their parent?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get your own in 60 seconds.

Buy now!