[ILUG] Hot swap drive / BACKUP
Keith Hyland
keith at iol.ie
Thu Jul 22 14:23:13 IST 2004
Pat, how about backup to a non removable drive? or do you need to keep the
backup elsewhere?
even (especailly?) if you are using a "slow" link, rsync is your friend.
here is what i do for backup.
>#!/bin/bash
># this script written by keith
># to mount the device ( /dev/hdb2/ )
># and rsync the shared writable files to it, deleting those that dont exist
>#
># mount the drive
>mount /dev/hdb2 /root/temp
>#
># do the inernet share
>rsync -arv --delete /home/e-smith/files/ibays/internet /root/temp/
>#
># do the games share
>rsync -arv --delete /home/e-smith/files/ibays/e /root/temp/
>#
># do the file store
>rsync -arv --delete /home/e-smith/files/ibays/f /root/temp/
>#
># do the utils place
>rsync -arv --delete /home/e-smith/files/ibays/utils /root/temp/
>#
># done the files, lets unmount the drive
>umount /dev/hdb2
and as it runs as a cron job, it emails root with what its done.
More information about the ILUG
mailing list