
22nd October 2009, 13:16
|
|
Senior Member
|
|
Join Date: Jul 2007
Location: Italy
Posts: 654
Thanks: 77
Thanked 12 Times in 7 Posts
|
|
ISPConfig Backup Script
Hi guys,
I have created this little script to backup all the important files. Have I forgot something?
Code:
echo "";
echo "************************************";
echo " ISPCONFIG BACKUP";
echo "************************************";
echo "";
echo "Wait a moment please...";
echo "1. Make a backup of /var/spool/mail";
/etc/init.d/postfix stop
cd /var/spool
tar -czf $ISPCONFIG/mail.tar.gz mail
echo "2. Copy the passwd file";
cp /etc/passwd $ISPCONFIG
echo "3. Copy the shadow file";
cp /etc/shadow $ISPCONFIG
echo "4. Copy the group files";
cp /etc/group $ISPCONFIG
echo "5. Copy the Vhosts_ispconfig.conf file";
cp /etc/httpd/conf/vhosts/Vhosts_ispconfig.conf $ISPCONFIG
echo "6. Copy the local-host-names file";
cp /etc/postfix/local-host-names $ISPCONFIG
echo "7. Copy the postfix/virtusertable file";
cp /etc/postfix/virtusertable $ISPCONFIG
echo "8. Copy the named.conf file";
cp /var/named/chroot/etc/named.conf $ISPCONFIG
echo "9. Copy the proftpd.conf file";
cp /etc/proftpd.conf $ISPCONFIG
echo "10. Copy the proftpd_ispconfig.conf file";
cp /etc/proftpd_ispconfig.conf $ISPCONFIG
echo "11. Backup of the ISPConfig Databse";
mysqldump \
-u$USER -p$PASSWORD -h$HOST \
-Q -c -C --add-drop-table --add-locks --quick --lock-tables \
db_ispconfig | gzip --best -c > $ISPCONFIG/db_ispconfig.sql.gz;
echo "Restart Postfix"
/etc/init.d/postfix start
Regards.
|
|
The Following User Says Thank You to vaio1 For This Useful Post:
|
falko (23rd October 2009)
|

23rd October 2009, 16:31
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,592 Times in 2,443 Posts
|
|
This is for Fedora/CentOS, right? A few paths are different on Debian/Ubuntu.
|

23rd October 2009, 17:33
|
|
Senior Member
|
|
Join Date: Jul 2007
Location: Italy
Posts: 654
Thanks: 77
Thanked 12 Times in 7 Posts
|
|
yes it is.
we are using CentoS 5.2.
any suggestion?
|

24th October 2009, 13:39
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,592 Times in 2,443 Posts
|
|
For CentOS and Fedora, your script looks good. On Debian and Ubuntu, the paths to Vhosts_ispconfig.conf and named.conf are a bit different.
|

24th October 2009, 13:41
|
|
Senior Member
|
|
Join Date: Jul 2007
Location: Italy
Posts: 654
Thanks: 77
Thanked 12 Times in 7 Posts
|
|
Infact I have CentOs.
The question is another: Have I forgot something to backup?
|

25th October 2009, 11:08
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,592 Times in 2,443 Posts
|
|
Yes, the web sites in /var/www.
|

26th October 2009, 08:29
|
|
Senior Member
|
|
Join Date: Jul 2007
Location: Italy
Posts: 654
Thanks: 77
Thanked 12 Times in 7 Posts
|
|
I would like to move my server to the newer version of ISP Config3. Which are the files that have I save from the old ISP Config2 server to move to ISP Config3?
thanks
|

27th October 2009, 19:01
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,592 Times in 2,443 Posts
|
|
You cannot upgrade from ISPConfig 2 to 3. The setups are totally different.
|

27th October 2009, 19:54
|
|
Senior Member
|
|
Join Date: Jul 2007
Location: Italy
Posts: 654
Thanks: 77
Thanked 12 Times in 7 Posts
|
|
Hi falko,
thanks for your reply is there a way to hide the upgrading from 2 to 3.0 to the users. I mean that all the parameters can remain the same to avoid the re-configuration of the clients?
thanks
|

28th October 2009, 16:02
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,592 Times in 2,443 Posts
|
|
It's not possible to upgrade from ISPConfig 2 to 3.
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 13:09.
|
|
Recent comments
3 hours 57 min ago
13 hours 25 min ago
14 hours 15 min ago
17 hours 48 min ago
22 hours 12 min ago
22 hours 34 min ago
1 day 44 min ago
1 day 10 hours ago
1 day 15 hours ago
1 day 17 hours ago