Backup fails if Transfer each virtual server after it is backed up is checked

I have a full and a incremental backup scheduled. The full fires once a week and the incremental daily. I have it configured to backup the daily and weekly to another server via ssh in a directory /daily/%Y-%m-%d. I have checked the option to create the destination directory.

But with the latest version of Virtualmin, if I have it checked to "Transfer each virtual server after it is backed up," Virtualmin does not create the directory first but rather creates a compressed file 2011-05-25 and overwrites it with each server's compressed file. But, if I uncheck the option to "Transfer each virtual server after it is backed up," the directory is created and each server has its own compressed file inside the directory as it is suppose to.

This worked fine with the previous version.

Thanks, Alan

Status: 
Closed (fixed)

Comments

Unfortunately this is a bug in Virtualmin 3.85 that I only just noticed :-(

The work-around is to edit /usr/share/webmin/virtual-server/backups-lib.pl and change line 298 to :

      local $mkcmd = $sshcmd." mkdir -p ".quotemeta($path);

Then run /etc/webmin/restart . It will also be fixed in the 3.86 release ..

Automatically closed -- issue fixed for 2 weeks with no activity.