View Single Post
Old 13th October 2006, 16:59
arve arve is offline
Junior Member
Join Date: Sep 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Backup and restore on Debian 3.1 Sarge


mkdir /root/backup
cd /root/backup
tar -pczf etc_backup.tar.gz /etc/
tar -pczf home_admispconfig_backup.tar.gz /home/admispconfig/
tar -pczf home_www_backup.tar.gz /home/www/
tar -pczf root_ispconfig_backup.tar.gz /root/ispconfig/
tar -pczf var_lib_named_etc_bind_backup.tar.gz /var/lib/named/etc/bind/
tar -pczf var_mail_bacup.tar.gz /var/mail/
tar -pczf var_uebimiau_domain.com_bacup.tar.gz /var/ (Or your webmail temp folder)
mysqldump -h localhost -u root -pYourMySQLPassword -c --add-drop-table --add-locks --all --quick --lock-tables --all-databases > db_backup.sql
Transfer backup-files with SSH(

Install system as described in guide (
Transfer backup-files to /root/backup

/etc/init.d/ispconfig_server stop
cd /
tar zxvf /root/backup/etc_backup.tar.gz
tar zxvf /root/backup/home_admispconfig_backup.tar.gz
tar zxvf /root/backup/home_www_backup.tar.gz
tar zxvf /root/backup/root_ispconfig_backup.tar.gz
tar zxvf /root/backup/var_lib_named_etc_bind_backup.tar.gz
tar zxvf /root/backup/var_mail_bacup.tar.gz
tar zxvf /root/backup/var_uebimiau_domain.com_bacup.tar.gz (Or your webmail backup file)
mysql -h localhost -u root - pYourMySQLPassword  < /root/backup/db_backup.sql
/etc/init.d/ispconfig_server start
Have not tested restore. Comments appriciated.
Reply With Quote
Sponsored Links