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.
Reply
 
Thread Tools Display Modes
  #1  
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

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
  #2  
Old 14th October 2006, 16:17
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
 
Default

This thread might also be interesting: http://www.howtoforge.com/forums/sho...ving+ispconfig
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

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 13:10
backup and restore provell Installation/Configuration 4 2nd May 2006 13:21
SystemImager howto make a dvd backup?? Philip_Anselmo HOWTO-Related Questions 0 26th March 2006 12:13
Backup restore on ispconfig misterm Installation/Configuration 0 19th December 2005 00:32
backup / restore Hellbound General 1 22nd September 2005 11:11


All times are GMT +2. The time now is 07:06.


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