Nov '10 08

Backup Linux Box

When creating a second Backup box, install minimal system, use the dpkg –get/set-selctions and apt-get dselect-upgrade

use cp -a to copy the following folders/files; NOTE: Avoid copying the whole folder, as fstab / passwd / udev etc. may be different (causing boot failure.)

  • /etc/ppp/
    • /etc/ppp/*secret*
    • /etc/ppp/options*
    • /etc/ppp/resolv.conf
    • /etc/ppp/peers/
  • /etc/postfix/
  • /etc/squid[3]/
  • /etc/apache2/
  • /etc/openvpn/
  • /etc/bind/
  • /etc/samba/
  • /etc/defaults/
  • /etc/webalizer/
  • /etc/network/if-up.d/
  • /etc/ssh/sshd_config
  • /etc/vim/vimrc
  • /etc/pptp.conf
  • /etc/vsftpd.conf
  • /etc/ntp.conf
  • /etc/cron.*/
  • /usr/local/[s]bin
  • /etc/.git/
  • /etc/.gitignore
  • /etc/.etckeeper
  • /etc/resolv.conf
  • /etc/network/interfaces
  • Merge passwd and group and shadow