Hi folks,
I need some help and suggestions on how to manage my backups wisely. This is my setup.
I have made two servers called bokesha and kevinisha as fileserver and backup server.
Bokesha has 4 2TB SATA disks in RAIDZ. FreeBSD is installed on a 160GB SATA disk. I make rsync backups from various laptops to bokesha. I also share one folder from bokesha on my LAN to laptops in my family. In this NFS share I store the family album, music, films etc. I have made a zpool called storage and I have put /home and /bu in this pool.
Kevinisha has 6 1TB SATA disks in a straight, non redundant ZFS pool also called storage. I have put /bu in this pool. FreeBSD is installed on a 160GB SATA disk.
My backup plan is to make rsync backups when needed of the family computers to the /home folder on bokesha. The NFS share also resides in /home so this folder gets updated continuously. To track the changes I want to take daily snapshots of the /home folder using this script or something similar.
I will manually delete old snapshots to not fill up the pool. My plan is also to rsync the snapshots to /bu on kevinisha daily. So now it's time for my questions:
I need some help and suggestions on how to manage my backups wisely. This is my setup.
I have made two servers called bokesha and kevinisha as fileserver and backup server.
Bokesha has 4 2TB SATA disks in RAIDZ. FreeBSD is installed on a 160GB SATA disk. I make rsync backups from various laptops to bokesha. I also share one folder from bokesha on my LAN to laptops in my family. In this NFS share I store the family album, music, films etc. I have made a zpool called storage and I have put /home and /bu in this pool.
Code:
[johan@bokesha ~]$ zpool status storage
pool: storage
state: ONLINE
scan: scrub repaired 0 in 0h14m with 0 errors on Thu May 10 21:50:17 2012
config:
NAME STATE READ WRITE CKSUM
storage ONLINE 0 0 0
raidz1-0 ONLINE 0 0 0
gpt/disk1 ONLINE 0 0 0
gpt/disk2 ONLINE 0 0 0
gpt/disk3 ONLINE 0 0 0
gpt/disk4 ONLINE 0 0 0
errors: No known data errors
[johan@bokesha ~]$ df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/ada0p2 142G 1.7G 129G 1% /
devfs 1.0k 1.0k 0B 100% /dev
storage/bu 4.8T 361G 4.4T 7% /bu
storage/home 4.9T 440G 4.4T 9% /home
storage 4.4T 209k 4.4T 0% /storage
Kevinisha has 6 1TB SATA disks in a straight, non redundant ZFS pool also called storage. I have put /bu in this pool. FreeBSD is installed on a 160GB SATA disk.
Code:
[johan@kevinisha ~]$ zpool status storage
pool: storage
state: ONLINE
scan: scrub repaired 0 in 0h0m with 0 errors on Mon May 14 20:30:42 2012
config:
NAME STATE READ WRITE CKSUM
storage ONLINE 0 0 0
gpt/disk1 ONLINE 0 0 0
gpt/disk2 ONLINE 0 0 0
gpt/disk3 ONLINE 0 0 0
gpt/disk4 ONLINE 0 0 0
gpt/disk5 ONLINE 0 0 0
gpt/disk6 ONLINE 0 0 0
errors: No known data errors
[johan@kevinisha ~]$ df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/ada0p2 142G 1.7G 129G 1% /
devfs 1.0k 1.0k 0B 100% /dev
storage/bu 5.4T 31k 5.4T 0% /bu
storage 5.4T 31k 5.4T 0% /storage
My backup plan is to make rsync backups when needed of the family computers to the /home folder on bokesha. The NFS share also resides in /home so this folder gets updated continuously. To track the changes I want to take daily snapshots of the /home folder using this script or something similar.
Code:
#!/usr/local/bin/bash
##########
#
# Test snapshot of bu
#
##########
# Create archive filename
day=$(date +%d)
month=$(date +%b)
year=$(date +%Y)
snapshot="$day-$month-$year"
zfs snapshot storage/home@$snapshot
I will manually delete old snapshots to not fill up the pool. My plan is also to rsync the snapshots to /bu on kevinisha daily. So now it's time for my questions:
- Do I need to make an initial snapshot from where the other ones are based upon to make it possible to delete old snapshots not needed anymore?
- Is it enough to basically just rsync everything from /home on bokesha to /bu on kevinisha? Is it then possible to restore data on kevinisha if needed?
- Is this an OK setup or is there a smarter way to do it?