[Wylug-help] Automatically back up usb drives? (solution)

Thomas Porteus (Student) 10087003 at bradfordcollege.ac.uk
Thu Oct 18 13:03:49 BST 2007


After some tinkering i have found a solution

in gnome change the preference of "removable drives and media" to Auto-run programs on new drives and media.

Then create a file on the usb stick called autorun and place

rsync -vrlptg /media/KINGSTON /vault/college | zenity --title=USB Backup --text-info

into the file, where /media/KINGSTON is the usb drive and /vault/college is the backup location you can remove the zenity bit if you dont have/want it installed

now when you plug in the stick it should ask you if you want to run autorun
 
----

Thomas Porteus

http://oris.outofreach.co.uk

You can find my personal email policy at the above address.

----

________________________________

From: Stephen Patterson [mailto:steve at patter.mine.nu]
Sent: Thu 18/10/2007 00:08
To: wylug-help at wylug.org.uk
Subject: Re: [Wylug-help] Automatically back up usb drives?



On 17 Oct 07, Scott Hodgson (linux at sh2515.plus.com) wrote:
> Yesterday I posted the exact same thing on LXF and apparently you can use:
> rsync
> USBsink
> Unison File Synchronizer
> Some thing inKDE settings can also do it
>
> But as of yet, I have no idea how to use any of them, have you seen the
> rsync commands?.

well, "rsync -av --delete /dev/sda1 ~/usb-backup" would backup /dev/sda1
to ~/usb-backup and remove any files in ~/usb-backup that aren't present
on the usb stick, *if* it is /dev/sda1. But don't modify the files in
~/usb-backups or those modifications will be overwritten.

Unison needs a configuration file but can cope with modifications on
either side. It asks you to confirm the transfer of non-matching files
in either direction (or to merge them).

--
Stephen Patterson :: steve at patter.mine.nu :: http://patter.mine.nu/
GPG: B416F0DE :: Jabber: patter at jabber.earth.li
"Don't be silly, Minnie. Who'd be walking round these cliffs with a gas oven?"




Email from Bradford College is subject to a disclaimer, the full
contents of which are available for viewing at the following link:

http://www.bradfordcollege.ac.uk/emaildisclaimer.htm
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.wylug.org.uk/pipermail/wylug-help/attachments/20071018/43f1e6c4/attachment.html


More information about the Wylug-help mailing list