I have been using Virtualmin for several years which is one of the greatest modules for Webmin allowing simple set-up and management of virtual hosts. Inside the “Scheduled Backup” feature I came across the “Do strftime-style time substitutions on file or directory name” check box but never actually properly made use of it:
I came across a project which required very frequent backups and to distinguish each backup from another I decided to give it a shot. The strftime function uses standard POSIX conversion specifications which very easily lets you build powerful combinations of date and time.
As an example you can use the following string:
/backup_%Y_%m_%d_%H.%M
which would leave a directory with the following name:
Now each backup will be created with a different name instead of simply overwriting the previous one.
Leave a Reply