Virtualmin scheduled backups strftime usage

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:

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

Comments

One response to “Virtualmin scheduled backups strftime usage”

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

    […] 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 […]

Leave a Reply

Your email address will not be published. Required fields are marked *

Why ask?