Edit added 09/23/05 by jlasman:
I know this has been posted in a few places, but I can never find it online when I want to refer to it, so here it is:
This is the list of files and directories we recommend backing up for a DA restore:
Directories:
/etc/mail
/etc/virtual
/home/admin
/usr/lib/apache
/usr/local
/usr/share/ssl
/var/log
/var/mail
/var/named
/var/spool/cron
/var/spool/mail
/var/spool/virtual
/var/www
/usr/local/directadmin/data/admin
Files:
/etc/exim.conf
/etc/exim.crt
/etc/exim.key
/etc/exim.pl
/etc/group
/etc/gshadow
/etc/hosts
/etc/httpd/conf/httpd.conf
/etc/httpd/conf/ips.conf
/etc/named.conf
/etc/passwd
/etc/proftpd.conf
/etc/proftpd.passwd
/etc/proftpd.vhosts.conf
/etc/resolv.conf
/etc/shadow
/etc/ssh/sshd_config
/etc/system_filter.exim
/usr/local/directadmin/conf/mysql.conf
Of course we make no guarantees of any errors or omissions in this list; you're responsible for your own server backup.
Edit added 03/0/05 by jlasman:
It's no longer necessary to download and install sysbk into DirectAdmin as it's now included in the DirectAdmin installation and completely configurable through the admin level DirectAdmin control panel.
Well to keep things clean and simple its based on sysbk, a great script released by r-fx networks with 2 modules included for ensim and cpanel aswell as default support for such files as your mysql configs the mysql init script mysql dump and myisamchk binaries aswell as named config files and zone files - finally your apache directory also gets backed up - /etc/httpd
Its a very simple to use system, everything is done for you, basically theres a config file for you the rest is thoroughly checked by a built in md5 checker on most packages within it, a variable to allow the maximum load sysbk will run under (default value is 2 - anything higher sysbk wont make the backup at the time) and also a minimum disk space that you specifiy to perform backups.
Backups can be moved using FTP or SCP (SSH)
Before we get onto the installation and porting for directadmin here is the feature list from the website:
.: Summary of features:
- all backup operations have a companion .md5 file with md5sum of the original files, to ensure data integrity
- capable of using a secondary archiving utility such as bzip2
- easy configuration of backup path and mount points
- configurable load-level threshold for performing backup operations
- priority queing of backup operations to reduce run-time load level
- top level backup of apache path
- multi-stage Bind DNS backup
- multi-stage MySQL backup with MYI/ISM check, mysqldump of all databases to
individual .sql files, and master backup of mysql db path
- remote transfer of backup data via FTP or SCP (SSH)
- incremented transfer mode to conserve disk space during backups
- and much more...
Before we move on just need to make clear, as usual, Itake no responsibility with the use of this guide or the sysbk software
Ok this is basic installation we will move onto the directadmin side in a moment
from root:
# mkdir sysbk
# cd sysbk
# wget http://www.rfxnetworks.com/downloads/sysbk-current.tar.gz
# tar -zxvf sysbk-current.tar.gz
# rm -f sysbk-current.tar.gz
# cd sysbk-*
# chmod 750 install.sh
# ./install.sh
# cd
# cd /usr/local/sysbk
# pico -w conf.sysbk
set what you want to backup and what you dont want to backup from the default options there, leave ensim and cpanel areas as '0' so they do not get used.
If you want mysq / dns / apache backups ensure you set them to 1 not 0 on their first option for sysbk to make the backups of them. You mus also ensure that CUSTOM_BK="0" is chnaged to CUSTOM_BK="1" so we can specify the files needed to be backed up for directadmin and your accounts
[ctrl] + [x] to save press [y] to confirm.
# cd mod
# pico -w custom.dirs
# add paths to any additional directorys you wish to include some directadmin use are:
[ctrl] + [x] to save press [y] to confirm.
# pico -w custom.files
# add paths to any files you wish to include some directadmin use are:
[ctrl] + [x] to save press [y] to confirm.
The paths are based on http://directadmin.com/paths.html if you feel the need to add any others or remove any feel free to suggest
Before you atempt to use it i suggest you read through /usr/local/sysbk/conf.sysbk to input your ftp / ssh details there to connect / make the backup.... without that it may be unsuccessful with connecting for obvious reasons
Finally, the excutable is located at:
/usr/local/sysbk/sysbk
usage /usr/local/sbin/sysbk [-s] [-q]
-s Standard run
-q Quiet run
Chris
I know this has been posted in a few places, but I can never find it online when I want to refer to it, so here it is:
This is the list of files and directories we recommend backing up for a DA restore:
Directories:
/etc/mail
/etc/virtual
/home/admin
/usr/lib/apache
/usr/local
/usr/share/ssl
/var/log
/var/mail
/var/named
/var/spool/cron
/var/spool/mail
/var/spool/virtual
/var/www
/usr/local/directadmin/data/admin
Files:
/etc/exim.conf
/etc/exim.crt
/etc/exim.key
/etc/exim.pl
/etc/group
/etc/gshadow
/etc/hosts
/etc/httpd/conf/httpd.conf
/etc/httpd/conf/ips.conf
/etc/named.conf
/etc/passwd
/etc/proftpd.conf
/etc/proftpd.passwd
/etc/proftpd.vhosts.conf
/etc/resolv.conf
/etc/shadow
/etc/ssh/sshd_config
/etc/system_filter.exim
/usr/local/directadmin/conf/mysql.conf
Of course we make no guarantees of any errors or omissions in this list; you're responsible for your own server backup.
Edit added 03/0/05 by jlasman:
It's no longer necessary to download and install sysbk into DirectAdmin as it's now included in the DirectAdmin installation and completely configurable through the admin level DirectAdmin control panel.
Well to keep things clean and simple its based on sysbk, a great script released by r-fx networks with 2 modules included for ensim and cpanel aswell as default support for such files as your mysql configs the mysql init script mysql dump and myisamchk binaries aswell as named config files and zone files - finally your apache directory also gets backed up - /etc/httpd
Its a very simple to use system, everything is done for you, basically theres a config file for you the rest is thoroughly checked by a built in md5 checker on most packages within it, a variable to allow the maximum load sysbk will run under (default value is 2 - anything higher sysbk wont make the backup at the time) and also a minimum disk space that you specifiy to perform backups.
Backups can be moved using FTP or SCP (SSH)
Before we get onto the installation and porting for directadmin here is the feature list from the website:
.: Summary of features:
- all backup operations have a companion .md5 file with md5sum of the original files, to ensure data integrity
- capable of using a secondary archiving utility such as bzip2
- easy configuration of backup path and mount points
- configurable load-level threshold for performing backup operations
- priority queing of backup operations to reduce run-time load level
- top level backup of apache path
- multi-stage Bind DNS backup
- multi-stage MySQL backup with MYI/ISM check, mysqldump of all databases to
individual .sql files, and master backup of mysql db path
- remote transfer of backup data via FTP or SCP (SSH)
- incremented transfer mode to conserve disk space during backups
- and much more...
Before we move on just need to make clear, as usual, Itake no responsibility with the use of this guide or the sysbk software
Ok this is basic installation we will move onto the directadmin side in a moment
from root:
# mkdir sysbk
# cd sysbk
# wget http://www.rfxnetworks.com/downloads/sysbk-current.tar.gz
# tar -zxvf sysbk-current.tar.gz
# rm -f sysbk-current.tar.gz
# cd sysbk-*
# chmod 750 install.sh
# ./install.sh
# cd
# cd /usr/local/sysbk
# pico -w conf.sysbk
set what you want to backup and what you dont want to backup from the default options there, leave ensim and cpanel areas as '0' so they do not get used.
If you want mysq / dns / apache backups ensure you set them to 1 not 0 on their first option for sysbk to make the backups of them. You mus also ensure that CUSTOM_BK="0" is chnaged to CUSTOM_BK="1" so we can specify the files needed to be backed up for directadmin and your accounts
[ctrl] + [x] to save press [y] to confirm.
# cd mod
# pico -w custom.dirs
# add paths to any additional directorys you wish to include some directadmin use are:
/home
/usr/local/directadmin
/usr/local/frontpage
/var/spool/virtual
/var/spool/mail
/var/www
/var/log
/etc/virtual
[ctrl] + [x] to save press [y] to confirm.
# pico -w custom.files
# add paths to any files you wish to include some directadmin use are:
/etc/exim.conf
/etc/exim.pl
/etc/system_filter.exim
/etc/exim.crt
/etc/exim.key
/etc/proftpd.conf
/etc/proftpd.vhosts.conf
/etc/proftpd.passwd
/etc/hosts
/etc/resolv.conf
[ctrl] + [x] to save press [y] to confirm.
The paths are based on http://directadmin.com/paths.html if you feel the need to add any others or remove any feel free to suggest
Before you atempt to use it i suggest you read through /usr/local/sysbk/conf.sysbk to input your ftp / ssh details there to connect / make the backup.... without that it may be unsuccessful with connecting for obvious reasons
Finally, the excutable is located at:
/usr/local/sysbk/sysbk
usage /usr/local/sbin/sysbk [-s] [-q]
-s Standard run
-q Quiet run
Chris