- Install Ubuntu 8.04 LTS with a minimal install
- Use apt-get update to update the repositories
- Use apt-get upgrade to make your new server current with security patches
- Use apt-get install rsnapshot, rsnapshot will be the backup technique we will use
- Configure your raid volume where your backups will be stored
- I use a hardware raid card, so all I need to do is make the partition.
- Use fdisk to create the partition.
fdisk /dev/sdb - I use jfs for my backup storage filesystem
- Use mkfs.jfs –L raid5 /dev/sdb1
- Add the new partition to /etc/fstab
LABEL=raid5 /mnt/raid5 jfs rw,atime 0 0
If you want you can use blkid to get the UUID of the new partition and use UUID instead of LABEL in /etc/fstab - If you try to mount the partition, you will probably get an error relating to there is not a /dev/ created yet.
- You now need to run partprobe to create the new /dev
- Now you can mount the partition
- mount /mnt/raid5
- Now we can edit the rsnapshot file located at /etc/rsnapshot.conf
- Set snapshot_root to be on your newly created partition like below
snapshot_root /mnt/raid5/rsnapshot/ - Skim thru the rest of /etc/rsnapshot.conf and modify as needed.
- Update here about ssh-keygen –t rsa
- Update here about sftp id_pub to server 2
- Update here about server 2 path in /etc/rsnapshot.conf
- Update here about running rsnapshot daily
- Update here about adding cron entries
- Update here about adding a samba share to access the backup from windows.
Architectural project manager and network admin for HH Architects, a small architectural firm in Dallas.
Wednesday, July 1, 2009
Using Ubuntu as a backup server
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment