I have moved to off site backups of my virtual servers. When I was doing the backups locally I had a path like this /home/jhardy/backup/virtual-sites/%m-%w-%y and Virtualmin would create several directories and rotate the backups. Now that I am FTP the backups with a path like this. /backup/162/%m-%w-%y it over writes the backups. How do I setup backups so I have copies of different days?

Status: 
Closed (fixed)

Comments

So is the problem that the backup directory is actually %m-%w-%y , and the current date is not being substituted in?

The backup directory is /backup/162/ I was hoping putting in %m-%w-%y like it was when the backups where done locally it would put in the current date.

That's exactly what should happen. You need to enter the backup destination as /backup/162/%m-%w-%h, and select "One file per domain" as the backup format. Also, check the "Create destination directory" box.

If you do that, what backup files does it create? Or what error do you get?

This is how I have it set

/backup/170/%m-%w-%y Backup format Single archive file One file per server (old format) One file per server Create destination directory? There is no "One file per domain" box So I checked by the "one file per server". I do have a check by the Create destination directory.

The backups then are FTP to another Ubuntu box that has Proftpd installed. It creates a directory under /backup/170/ called %m-%w-%y and copies the backups there. Tomorrow it will over write those files.

I see no errors when it backups up. IT just does not put them in the right directory. What am I doing wrong? Thanks

Did you check the 'Do strftime-style time substitutions on file or directory name' box? That is needed for the % codes to be replaced based on the current date and time..

OK adding the check by 'Do strftime-style time substitutions on file or directory name' box did the trick. Is there a guide to Virtualmin? Thanks this is fixed.

Joe's picture
Submitted by Joe on Wed, 06/24/2009 - 10:29 Pro Licensee

Is there a guide to Virtualmin?

There are several hundred pages of documentation at http://www.virtualmin.com/documentation

Some of the docs haven't been reorganized yet, and so the old docs are also still available at http://www.virtualmin.com/documentation/legacy

There is also online help for almost every option in Virtualmin (and if there isn't help for an option, it's bug-like and we'll be getting it fixed soon). Just click the name of the option, and a help popup window will appear. This option does have complete help, covering all of the available variables.