All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
LF Person to write me a backup script (bash).
I'd do it myself, but I don't feel like spending a couple hours googling and debugging. The bash script is a fairly simple one, but should have all the features listed.
The top should have all the variables listing:
- what directory to back up
- what directory to store backup
- database back up name (empty for no database backup)
- database username
- database password
- remote ftp host
- remote ftp username
- remote ftp password
- remote ftp storage path
- local save count (days to keep backup locally)
- remote save count (days to keep backup remotely)
Above is all pretty self explanatory. The script should then make a tar.gz of the directory and the mysql dump store it in the following format:
/backupdirectory/YYYY-MM-DD/directoryname-HH-SS.tar.gz
it should then ftp into the remote host and store it in
/remoteftppath/YYYY-MM-DD/directoryname-HH-SS.tar.gz
The script should automatically delete folders YYYY-MM-DD that are too old (as configured by the local/remote save count variables)
logs can be placed in /backupdirectory.
If anyone wants to do this, let me know how much you'd charge for it. (or if you want to do it for free and release it publicly, that would be cool too of course)
Or if anyone knows a script that can support this or already has most of the features so I only have to add a couple, that would be cool too.
Comments
CPanel? maybe cron jobs will help.
Thank you for your wise words. I would never have guessed cPanel had a backup feature.
Wait, people actually bother to back up? What is this, 2015???
Welcome to the future brother.
@Jonchun - you could add "encrypt tar file" to your request list, just saying...
https://github.com/etiennerached/godaddy-backup-script
Most of your requirements are in this script. It's only missing the logs and the delete local backups after xxxx time.
I already use it on my Digitalocean server since I don't have any admin panel.
Could add that as well. (although just using zip would be better in that case) Or change it to sftp for better security.
Will check this out. My use case is exactly the same as yours.
With a very small amoumt of adaptation to do files as well:
http://forums.kayako.com/threads/cron-job-to-backup-kayako-owned-db.8202/
You can use this to delete files from a folder after X
Obviously change /svndumps/* to your dir. And mtime to something else rather than 10 days old.
OP, did you get anywhere with this in the end?
It's not Bash, but I think Duplicity can do all of this, including backup encryption, multiple backends, and incremental backups.
You can follow scripts of DirectAdmin http://pastebin.com/8PRpPve3