I have set up a scheduled backup for all my virtual domains, and in the 'Destination and Format' for 'File on server' I have specified:
/mnt/backup/olympus/virtualmin/%Y-%m-%d@%H-%M
The folder that gets created is named, for example, %Y-%m-%d@19-05 instead of 2016-06-15@19-05.
Do I have something wrong in my code for the directory name? The backup takes place and everything is good except for the name.
I am currently running:
Webmin version 1.801
Virtualmin version 5.03
Theme version Authentic Theme 18.02
Thanks for any help you can provide!
[EDIT] Webmin:System:Filesystem Backup works as I expected using the same script:
/mnt/backup/olympus/system/%Y-%m-%d@%H-%M.tar
Both the system and virtualmin folders have the same permissions and mode.
Comments
Submitted by tripkin on Wed, 06/15/2016 - 22:03 Comment #1
Submitted by andreychek on Wed, 06/15/2016 - 22:35 Comment #2
Howdy -- just to verify, is the "Do strftime-style time substitutions on file or directory name" option selected in that particular backup?
Submitted by tripkin on Wed, 06/15/2016 - 22:38 Comment #3
Hi andreychek, yes that option is selected. And as you can see, it is correctly putting the time in, just not the date.
Submitted by JamieCameron on Thu, 06/16/2016 - 18:48 Comment #4
You need to remove the @ from the path - it's a special character in the backup URL.
Submitted by tripkin on Thu, 06/16/2016 - 18:50 Comment #5
Thanks Jamie, I can do that no problem. Why does it work in the Webmin module? Is it a difference in how the calls are made?
Submitted by JamieCameron on Thu, 06/16/2016 - 18:58 Comment #6
Yes, it's different code used for the Webmin vs Virtualmin backups.
Submitted by tripkin on Thu, 06/16/2016 - 19:06 Comment #7
Excellent, thank you very much! I will keep it in mind. And we can now mark it as resolved. Test backup worked like it should.
Submitted by JamieCameron on Fri, 06/17/2016 - 20:33 Comment #8