Virtualmin scheduled backups strftime usage

10 Jun
2008

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:

Virtualmin Scheduled Backup

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:

/backup_2019_09_24_08.54

Now each backup will be created with a different name instead of simply overwriting the previous one.

1 Response to Virtualmin scheduled backups strftime usage

Avatar

scientia potentia est » Error: Could not open the local file - FTP madness!

June 12th, 2008 at 13:17

[…] of a struggle recently. The backups are created automatically and uploaded to a file server at a scheduled pattern. From this file server I had to use some of the backups and tried to download them to my local […]

Comment Form

top