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.
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.
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
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
ISPConfig 3 CentOS 5.4 I don't have the files in steps 5 through 10. I followed the "Perfect Setup" for CentOS 5.4 and ISPConfig 3 for x86_64--though I substituted i386 due to hardware on my box. ISPConfig 3 is running basically as expected, but I am definitely anxious to back it up! Thanks in advance!
backup script for ISPconfig 2 on Debian Etch using duplicity Here's my backup script for ISPconfig 2 on Debian Etch using duplicity and backing up to disk2: 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 /root/ispconfig file:///disk2/backup1/ispconfigbackup duplicity --no-encryption /home/admispconfig file:///disk2/backup1/admispconfigbackup duplicity --no-encryption /var/www file:///disk2/backup1/allsitesbackup