KB Article #166867

Filesystem backup: Specifying date and time in filename

Problem

In Webmin backup into a file name containing a date timestamp with the following line:-

/REMOTE_FTP_DIRECTORY/wai-settings-`date +%Y%m%d_%H%M%S`.tar.gz

This is working fine, the file at the remote location is called e.g. wai-settings-20130614_111000.tar.gz.

However, on the "Filesystem Backup" page, I get the following message:

Warning - some backup jobs use % in their filenames, but strftime substitution is not enabled on the Module Config page.

 

Resolution

On the appliance host login run the following command :-

sed -i 's/date_subs=0/date_subs=1/' {/usr/libexec/webmin/fsdump/config,/etc/webmin/fsdump/config}

or if upgrading this is called with the post upgrade script i.e.

# wget http://kingsofsoa.vordel.com/vordel/post-upgrade.sh
# sh post-upgrade.sh