Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 4th March 2009, 02:17
PermaNoob PermaNoob is offline
Senior Member
 
Join Date: Jan 2007
Posts: 194
Thanks: 12
Thanked 5 Times in 5 Posts
Default List of directories needed to move ISPConfig 2

Could someone make a list of the directories I need to backup to move ISPConfig to a new server?

I'm using ISPConfig 2 on Debian Etch

I'm using Duplicity to backup, and so far I have:

/root/ispconfig
/home/admispconfig
/var/www

and the mysql databases

I saw the thread about moving ISPConfig, but it's several years old and I don't have many of the directories mentioned.

Thanks in advance!
Reply With Quote
Sponsored Links
  #2  
Old 4th March 2009, 10:52
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,769
Thanks: 840
Thanked 5,609 Times in 4,420 Posts
Default

Please take a look here:

http://www.howtoforge.com/forums/showthread.php?t=2717
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
PermaNoob (4th March 2009)
  #3  
Old 4th March 2009, 13:26
PermaNoob PermaNoob is offline
Senior Member
 
Join Date: Jan 2007
Posts: 194
Thanks: 12
Thanked 5 Times in 5 Posts
Default

Quote:
Originally Posted by till View Post
That's the thread I was referring to.

I don't have a /home/www/, and I thought I was missing some of the others so it appeared to be outdated.

So here's the list I have--is this all that's needed?

---------------------

/etc/passwd
/etc/shadow
/etc/group

Vhosts_ispconfig.conf

/etc/postfix/local-host-names
/etc/postfix/virtusertable

named.conf

the .conf files in /etc/proftpd/

all the pri.* zone files for domains that use the local dns

/var/www/

sql dumps of the MySQL databases

---------------

What about

/root/ispconfig/
/home/admispconfig/

Would it be useful to have them or do they contain nothing that the new installation won't have?
Reply With Quote
  #4  
Old 4th March 2009, 15:06
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

Quote:
Originally Posted by PermaNoob View Post
What about

/root/ispconfig/
/home/admispconfig/

Would it be useful to have them or do they contain nothing that the new installation won't have?
If you first install ISPConfig on the new server, these directories are already there.
__________________
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
The Following User Says Thank You to falko For This Useful Post:
PermaNoob (4th March 2009)
  #5  
Old 4th March 2009, 16:33
PermaNoob PermaNoob is offline
Senior Member
 
Join Date: Jan 2007
Posts: 194
Thanks: 12
Thanked 5 Times in 5 Posts
Default

OK, thanks for the help. I'm just trying to prepare for a disaster, in which case I would either restore my server with a new installation or order a new server and install there, which I think will be easier than trying to restore my old installation.

So I've got these series of commands which I execute in a single file for backing up:

cp /etc/passwd /disk2/backup1/ispconfigfiles
cp /etc/shadow /disk2/backup1/ispconfigfiles
cp /etc/group /disk2/backup1/ispconfigfiles
cp /etc/apache2/vhosts/Vhosts_ispconfig.conf /disk2/backup1/ispconfigfiles
cp /etc/postfix/local-host-names /disk2/backup1/ispconfigfiles
cp /etc/postfix/virtusertable /disk2/backup1/ispconfigfiles
cp /var/lib/named/etc/bind/named.conf /disk2/backup1/ispconfigfiles
cp /etc/proftpd/modules.conf /disk2/backup1/ispconfigfiles
cp /etc/proftpd/proftpd.conf /disk2/backup1/ispconfigfiles
duplicity --no-encryption /var/www file:///disk2/backup1/allsitesbackup

plus the MySQL databases (I'm using the Web Backup in ISPConfig for the 10 or so databases on my server--is there a reason I shouldn't do this?)

and all the pri.* zone files for domains that use the local dns.

Did I miss something?

Last edited by PermaNoob; 4th March 2009 at 17:12.
Reply With Quote
  #6  
Old 5th March 2009, 18:53
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

I'd also copy /etc/proftpd/proftpd_ispcponfig.conf, but the rest looks good.
__________________
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
  #7  
Old 6th March 2009, 02:35
PermaNoob PermaNoob is offline
Senior Member
 
Join Date: Jan 2007
Posts: 194
Thanks: 12
Thanked 5 Times in 5 Posts
Default

Quote:
Originally Posted by falko View Post
I'd also copy /etc/proftpd/proftpd_ispcponfig.conf, but the rest looks good.
I don't have that file anywhere on my server--is that something I should be concerned about?

These are the only 2 files I have in that directory:

/etc/proftpd/modules.conf
/etc/proftpd/proftpd.conf

nvm--I copied and pasted yours and just saw the typo, it's at /etc/proftpd_ispconfig.conf

thanks for the help

Last edited by PermaNoob; 6th March 2009 at 02:42.
Reply With Quote
  #8  
Old 6th March 2009, 03:17
PermaNoob PermaNoob is offline
Senior Member
 
Join Date: Jan 2007
Posts: 194
Thanks: 12
Thanked 5 Times in 5 Posts
 
Default

In conclusion, for other noobs using ISPConfig 2, this is my list for what needs to be backed up for a move to a new installation:

cp /etc/passwd /disk2/backup1/ispconfigfiles
cp /etc/shadow /disk2/backup1/ispconfigfiles
cp /etc/group /disk2/backup1/ispconfigfiles
cp /etc/apache2/vhosts/Vhosts_ispconfig.conf /disk2/backup1/ispconfigfiles
cp /etc/postfix/local-host-names /disk2/backup1/ispconfigfiles
cp /etc/postfix/virtusertable /disk2/backup1/ispconfigfiles
cp /var/lib/named/etc/bind/named.conf /disk2/backup1/ispconfigfiles
cp /etc/proftpd/modules.conf /disk2/backup1/ispconfigfiles
cp /etc/proftpd/proftpd.conf /disk2/backup1/ispconfigfiles
cp /etc/proftpd_ispconfig.conf /disk2/backup1/ispconfigfiles
duplicity --no-encryption /var/www file:///disk2/backup1/allsitesbackup

plus the MySQL databases

and all the pri.* zone files for domains that use the local dns.

I use duplicity because it compresses the www files so they have proper ownership/permissions/location when extracted and it only backs up changes after the first backup, so it's very fast.

I use cp for the other files because root owns them all

You can also use duplicity to ftp the backup, like:

FTP_PASSWORD=yourpassword duplicity /var/www ftp://user@serveriporaddress/

with encryption for security--duplicity will ask for a passphrase unless you specify --no-encryption

You can modify the list for your backup location and save it as a text file called yourbackupfile, for example, on your server and made executable by chmod to 755, then you can execute it with ./yourbackupfile

Last edited by PermaNoob; 6th March 2009 at 03:22.
Reply With Quote
The Following User Says Thank You to PermaNoob For This Useful Post:
falko (6th March 2009)
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
ISPConfig installation into multiple OpenVZ containers letezo Installation/Configuration 11 3rd March 2009 23:47
Logic behind ISPConfig site directories webbinALLnite General 1 15th October 2007 12:28
Godaddy + ISPConfig - two servers needed? netphreak Installation/Configuration 4 31st December 2006 12:53
ISPConfig on the move to new server awd.pt Installation/Configuration 2 20th December 2006 11:52
Totally Confused?? :( kingtux Installation/Configuration 7 9th February 2006 23:14


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


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