Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Tips/Tricks/Mods

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 13th October 2006, 15: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

Backup

Code:
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/uebimiau_domain.com/ (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(http://filezilla.sf.net)

Restore
Install system as described in guide (http://www.howtoforge.com/perfect_setup_debian_sarge)
Transfer backup-files to /root/backup

Code:
/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
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Incremental Backup chrno Installation/Configuration 2 17th May 2006 12:10
backup and restore provell Installation/Configuration 4 2nd May 2006 12:21
SystemImager howto make a dvd backup?? Philip_Anselmo HOWTO-Related Questions 0 26th March 2006 11:13
Backup restore on ispconfig misterm Installation/Configuration 0 18th December 2005 23:32
backup / restore Hellbound General 1 22nd September 2005 10:11


All times are GMT +2. The time now is 16:47.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.