Submitted by methownet on Mon, 06/22/2009 - 17:21 Pro Licensee
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
Submitted by JamieCameron on Mon, 06/22/2009 - 17:25 Comment #1
So is the problem that the backup directory is actually %m-%w-%y , and the current date is not being substituted in?
Submitted by methownet on Mon, 06/22/2009 - 17:35 Pro Licensee Comment #2
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.
Submitted by JamieCameron on Mon, 06/22/2009 - 17:37 Comment #3
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?
Submitted by methownet on Tue, 06/23/2009 - 11:31 Pro Licensee Comment #4
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
Submitted by JamieCameron on Tue, 06/23/2009 - 12:03 Comment #5
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..
Submitted by methownet on Wed, 06/24/2009 - 10:19 Pro Licensee Comment #6
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.
Submitted by JamieCameron on Wed, 06/24/2009 - 10:28 Comment #7
There is documentation at : http://www.virtualmin.com/documentation/
The page on backups is at : http://www.virtualmin.com/documentation/id,backups_and_restoration/
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.