LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Hot swap drive / BACKUP

[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
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell