apprell / proxmox-autosnap

Automatic ZFS Snapshot Script for Proxmox VE 5, 6, 7 and 8
71 stars 15 forks source link

strftime change to allow replication to picky TrueNAS naming scheme #12

Closed signal-9 closed 9 months ago

signal-9 commented 9 months ago

Allow manual replication to TrueNAS (that requires %Y strftime), using

%Y%m%d%H%M%S

added to the naming scheme.

Just changes snapshot names to @autohourly20240211234041 as example, using full year.

apprell commented 9 months ago

I have added a new argument --date-truenas-format to the settings. This is done to avoid changing the standard format, as someone might already be using it. I wouldn’t want these changes to break something for other users. Now you can use this argument for manual replication to TrueNAS using the %Y%m%d%H%M%S format for snapshot naming.