I see that there is an option in the Account Plans settings that says “Backup and Restore”.
What is this for? Is there a simple way to backup virtual systems to a backup server from within Cloudmin and then restore it? Can you please address this issue? How does one do backups?
[deleting initial text, as I clearly didn’t read the post well enough]
Looking into the backup functions, I think I’m going to let Jamie answer that one. I’ll pass the message along to him!
Hi Eric, I am referring to cloudmin. Not virtualmin. Sorry for the confusion. Should I be using a different forum?
The backup function in Cloudmin 3.0 and later is design to backup one or more virtual systems so that their filesystems can be restored if they get wiped out by an
rm -rf / or something.
You can setup backups on schedule, or trigger them on demand. The destination can be any remote FTP or SSH server, or another system managed by Cloudmin so that you can have a central backup destination.
Check under the Backup and Restore category on the left menu for all the backup functions…
OK, that makes sense. I guess what confuses me is: How self service is the backup and recover setup?
Does each account owner have access to their own backup and restore? Can they manage their own backup schedule each of their managed systems and also recover from backup? Or are backups a root user thing? I am curious how you have visualized this…
By the way, I am a huge fan of your work. Right now, I am kind of bumbling around since the docs are frankly a little hard to understand. I really appreciate the help getting me up to speed. Thanks.
Yes, the backups can be self-service … you can limit at the plan level how much disk space each owner can use for backups, and give them the ability to make and restore their own backups.
The best way to set this up is as follows :
Pick a machine that you will use for storing backups, ideally on the same network as your Xen host systems and with plenty of space. Alternately, you can choose to store backups on the host system(s) themselves.
Go to Host Systems -> Xen Host Systems -> some-host, and enter that location in the “Default backup destination” section. Do this for each of your hosts.
Go to Cloudmin Settings -> Account Plans, and check the “Backup and restore systems” box under “Allowed actions for system owners”. Also, enter some amount of disk space in the “Maximum space for backups” field. Then click Save.
System owners should now have access to the backup and restore features.
Each time the backup runs, it overwrites the older backup witch makes it not very useful.
Can’t we define the max number of days for backup and have the backup files with date information in it’s name?
That would be a great feature.
That’s a good idea, and is on my TODO list. I want to support date-based backups with purging, like Virtualmin does.
Until then, you could create multiple backup schedules for the same systems, each of which runs on a different day of the week and each of which goes to a different destination…
I will do that.
Just one more question.
What if we need just to restore some files from a backup?
Any idea on how to mount a backup in a separete folder? Like /mnt/oldbackup
The simplest way is to find the backup you want to restore on the Backup Logs page, then click on it to restore. This assumes that it is still at the original location though…
Yes but the problem is that it will over-wright any file on the server.
It would be great if we could open a backup (mount it on /mnt/backup) and then we could copy any file we want to recover.
Do you mean being able to do a partial restore of just some files from the backed-up system’s filesystem?
At the moment, there is no built-in way to do this. However, you may be able to do it manually if needed, depending on the VPS type you are backing up (OpenVZ, Xen or something else).
Do you have plans to allow us, or the VPS owner / client todo partial restores to selected files only?
This could be done, but it isn’t on my list of future features yet …