Hey there,
I converted a clients server to Virtualmin GPL recently. I am trying to figure out some way to allow someone to download their backups easily.
I have a couple of questions along the way.
I created a couple scheduled backups, one that does a full backup on the 1st of each month. Its destination is: Local file /home/servername/backup/full/%Y.%b.%d
I created a second one that does incremental backups every day at 4am to avoid doing it at the same time as the full backup. Its destination is: Local file /home/servername/backup/incremental/%Y.%b.%d
I have them both deleting old backups older than 32 days.
Is this particular method I am using the best way to do it?
On another server using Virtualmin Pro with 30 domains I had them both going at the same time but since last night was the 1st they both tried to go at the same time I guess and the incremental had an error trying to dump the sql files. (Dumping MySQL database … gzip failed!). So then I now have them going to separate subfolders inside the backup folder on both servers.
I have them backing up to a backup folder inside their virtual servers directory and this was adding the backup folder into the next days backup. So I eventually found the Excluded Directories under Administration Options, eventhough I thought it should be under Backup and Restore. I am guessing it was moved for some reason or another though. Took me ages to find it eventhough I new exactly what it was called. Even searching for Excluded Directories didn’t bring me to it.
And now you know right where I am at. Now it appears to be backing the files up just fine. However I am missing one part. The ability for my client to download the files. I can log into ftp and see them there. I can probably even download them, though I can’t delete them since they are owned by root but they should delete automatically after 32 days. Hopefully the server has space to keep them. The problem is I don’t want to download them or have to delete them if the server needs more space. I want my client to deal with that. Unfortunately she is old and doesn’t know how to use FTP and doesn’t want to learn. I could just run a command after backup to chmod the files to her ftp user. Maybe even one to send an email with a download link that logs her browser into ftp so she can download the backups. The thing is I don’t know how reliable that is. What if it lost connection, maybe she wouldn’t even know the backup was incomplete and she wouldn’t be able to resume it either. Maybe I am just being crazy now.
Is there an option to send an email or change the owner of the files somewhere already or do I have to write a script to do them?
Is there a way to make the backups available in Usermin? She already has a login for there and it only makes sense to put them right in there instead of emailing them to her. Any ideas on how to do this?
Sorry for the long post and so many questions. It is just hard to deal with clients sometimes when they find it hard to learn new things or simply dont have the time or desire to learn.
Thank you muchly for your time!
Ryan