daily backup of user web & databases
i need to set up a backup system for my users, so that they can download their backups.
After searchinf the Inet i found that setting $go_info["server"]["do_automated_backups"] = 1 in /home/admispconfig/ispconfig/lib/config.inc.php for ISPconfig 2 did the trick. So I searched for the configfile of ISPConfig 3 and found /usr/local/ispconfig/server/lib/config.inc.php , but this file does not have a PHP array go_info.
So I assume that setting it anyway will not work.
Is there a way to use this feature with ISPConfig 3?
No, this feature hasn't been implemented yet.
Daily backups can easily be implemented using tar running on a cron job. This would be external to the ispconfig framework.
If you have a real working server, my general advice is to install BackupPC on another (backup) server, and backup the /var/clients, /var/www, /var/vmail, /home, /etc, /usr/loca/ispconfig folders (didn't i forget anything?). Or easier just to backup everything from the root, excluding some useless stuff like /var/lib/mysql, /var/log and /var/cache.
To store the database, just create its sql export into /var/clients/sql folder before every backup with tcpdump (there is an option in BackupPC to run any script before backup). Then BackupPC will take those new files created by tcpdump.
In case of big databases a small optimization is desirable. Here is my script to optimize the disk space usage on backups. It exports all tables of all the databases into separate files. It should be run by BackupPC every time.
$ cat /var/clients/sql/export_sql.sh
I hear that bzip uses a lot more processor power that tgz.
If you have only an 'average' server (like most of us do) then you might want to use tgz compression instead. Backup's will take more room but the load on processor will be much lighter on the webserver.
By far the easiest backup solutions are in this order...
1) Proxmox virtualisation and snapshot backup with webcontrol panel.
- VPS restoration can be done with one command on the host server
* vzdump --restore vzdump-132.tgz 132
- You can create as many backup schedules of VPS's as you want.
(Something like nightly backup's with weekend backups on different folders. NOTICE!!! You have to manually create the backup folders first.
2) Webmin's backup.
- Not really that efficient but easy webcontrol panel and no need for command line at all.
- REALLY EASY MySQL backup!!! Just backup all databases.
- Really good product for those who do not fear command line work.
Personally I have found it good to use all of these options combined.
Proxmox for 'Ghost' like total Virtual Private Server (VPS) images.
Webmin for easy MySQL backups inside the VPS.
And BackuPC for the rest. (I have excluded /backup folder backups on the hosts. Otherwise the amount of data would just be too BIG. )
All of these give me quite easy backup/restoration options on both file and server levels.
In my opinion (as an administrator) ISPConfig2's best feature was the easy backup's of web/db/mail/log.
If restoration of those could have been implemented it would have been perfect.
After all, backup/restoration is the most important aspect of any system.
It directly translates to why virtualisation is so powerfull. It gives us easy ways to backup/restore/move/copy data.
At the moment this is still taking its baby steps. Only server level virtualisation (mostly). I hope to see the day when we can move mailboxes and websites from server to server like virtual servers can now be moved from host to host.
Imagine the power of such a system.
HI, maybe this help?
my backup script
Hi, maybe this script will help you:
It's a script which can be used to backup any linux system and it's run from cron. You can find more info in the script header.
You're missing the point. As an admin backup's and restoration is not really that big of a problem for me (personally.)
I'm talking about easy backup/restoration that a ReSales person can be tought to do. (ie. non-nerd:)
|All times are GMT +2. The time now is 15:05.|
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.