Change ZFS snapshot name using pve-zsync

Whatever

Renowned Member
Nov 19, 2012
411
76
93
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
 
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
 
Hi,

no it is hard coded in pve-zsync.
 
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 ?
 
The first job(sync) is not quick but yes and yes.
 
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?