Tuesday, September 25, 2012

Ubuntu: Install & Configure Backuppc

** For Backup Data in Ubuntu Server, Need to mount new volume/hd first to locate the backup files.


  1. Add New Volume or Hard disk to backup server.
  2. SSH to the server using putty.exe
  3. Reboot server
    #reboot
  4. SSH again  and  run
    #fdisk -l
  5. Run command
     # mkfs.ext3  /dev/sdh
     # df -h
     # cd /mnt/
     # mkdir backup
     # chown -R backuppc:backuppc
  6. Mount new volume/hd to backup
     # mount /dev/sdh backup/
     # df -h
    *To check if the volume mount to backup/
BACKUPPC INSTALLATION

    1. Verifying that your server’s time and date are correct
         # date
           Thu Sep 20 03:48:04 UTC 2012

            2. Update & upgrade ubuntu(if needed)
                 # sudo apt-get update && sudo apt-get upgrade

                  3. Install backuppc
                       # sudo apt-get install backuppc

                        4. By default config file located here:
                             # nano /etc/backuppc/config.pl

                              5. Copy backuppc root dir ke /mnt/backup/
                                   # cd /var/lib/backuppc
                                     # cp -Rp /var/lib/backuppc /mnt/backup/

                                      6. Backup & Edit config.pl
                                           # cd /etc/backuppc/
                                             # cp config.pl config.pl.ORI
                                               # nano /etc/backuppc/config.pl

                                                7. Change $Conf{TopDir}
                                                     $Conf{TopDir} = '/mnt/backup/backuppc';

                                                      8. Restart service backuppc
                                                           # /etc/init.d/backuppc restart

                                                            9. Open from browser
                                                                 http://yourdomain.com/backuppc
                                                                 login & start config.

                                                              0 comments:

                                                              Post a Comment