oetiker / znapzend

zfs backup with remote capabilities and mbuffer integration.
www.znapzend.org
GNU General Public License v3.0
608 stars 137 forks source link

tsformat showing %Y-%m-0-%H%M%S with perl errors #409

Closed christogriffith closed 5 years ago

christogriffith commented 5 years ago
root@pve:~# znapzendzetup create --recursive SRC '1day=>1hour,2week=>1day,2month=>1week,2year=>1month'  rpool DST '1day=>1hour,2week=>1day,2month=>1week,2year=>1month' usb_backup
*** backup plan: rpool ***
           dst_0 = usb_backup
      dst_0_plan = 1day=>1hour,2weeks=>1day,2months=>1week,2years=>1month
         enabled = on
         mbuffer = off
    mbuffer_size = 1G
   post_znap_cmd = off
    pre_znap_cmd = off
       recursive = on
             src = rpool
        src_plan = 1day=>1hour,2weeks=>1day,2months=>1week,2years=>1month
Invalid conversion in printf: "%Y" at /usr/local/bin/znapzendzetup line 34.
Invalid conversion in printf: "%m" at /usr/local/bin/znapzendzetup line 34.
Missing argument in printf at /usr/local/bin/znapzendzetup line 34.
Invalid conversion in printf: "%H" at /usr/local/bin/znapzendzetup line 34.
Invalid conversion in printf: "%M" at /usr/local/bin/znapzendzetup line 34.
Invalid conversion in printf: "%S" at /usr/local/bin/znapzendzetup line 34.
        tsformat = %Y-%m-0-%H%M%S
      zend_delay = 0

Do you want to save this backup set [y/N]? 

I'm not at all a perl guy so I'm not sure where to start with this one. Here's some environment info, running on proxmox v5.3-11, built locally.

root@pve:~# cat /etc/debian_version 
9.8
root@pve:~# uname -a
Linux pve 4.15.18-11-pve #1 SMP PVE 4.15.18-34 (Mon, 25 Feb 2019 14:51:06 +0100) x86_64 GNU/Linux
root@pve:~# perl -v

This is perl 5, version 24, subversion 1 (v5.24.1) built for x86_64-linux-gnu-thread-multi
(with 85 registered patches, see perl -V for more detail)
saurabhnanda commented 5 years ago

I can confirm the same errors:

This is perl 5, version 26, subversion 1 (v5.26.1) built for x86_64-linux-gnu-thread-multi
(with 67 registered patches, see perl -V for more detail)