Tudor is a techie turned manager who fights like mad to keep his tech skills honed and relevant. Everything from web hosting, networking, *nix and the like. Constantly developing and co-ordinating with others to make the web a better (and easier to use) place.
Wednesday, 15th Dec 2010 Posted @ 10:39
So now the NAS is up and running, the next step is to connect to the NFS shares and do a backup!
My boxen are all running CentOS so I edited my /etc/hosts and added:
nas.xxxx.com 10.0.0.1
I then edited my /etc/fstab and added the following so that they would mount at boot:
nas.xxxx.com:/mnt/disk0 /mnt/disk0 nfs rw,hard,intr 0 0
nas.xxxx.com:/mnt/disk1 /mnt/disk1 nfs rw,hard,intr 0 0
Sorted. Next step - backup. The following single command backups my entire file structure to a tar.gz on the NFS share:
tar -zcvpf /mnt/disk0/$HOSTNAME-full-backup-`date '+%d-%B-%Y'`.tar.gz --directory / --exclude=mnt --exclude=proc .
So NAS box online, NFS sharing and backup all in one day (probably took about an hour in total). Now that I know it all works the way I want it to, I can start looking at doing something "similar" for the company :)
[ no comments : Add ]