Topic: automatic action (eg rsync) after mounting usb drive?

Is there any way to automatically make in incremental backup when inserting a thumbdrive?

And, is it also possible to sync automatically when my netbook finds itself in my home network?

A cron job won't do, since the criterium shouldn't be time, but the availability of the thumbdrive and/or samba network. Any idea?

Re: automatic action (eg rsync) after mounting usb drive?

Although there may well be a way to do what you wish, a cron job could do it, by checking every (say) 5 minutes for the thumbdrive to be mounted and then running rsync.

No doubt someone wiser than I will be able to help more though!

Re: automatic action (eg rsync) after mounting usb drive?

you may be able to modify these scripts to do what you want http://andri.dk/tech/linux/usb-backup

I say never be complete, I say stop being perfect, I say lets evolve, let the chips fall where they may.

Re: automatic action (eg rsync) after mounting usb drive?

iggykoopa

Thanks for that link, having seen that, I may well end up modifying and using it myself, as I also could use something similar.

Re: automatic action (eg rsync) after mounting usb drive?

For the thumbdrive,  how about a thunar custom action, that should be possible right?

Last edited by Zwopper (2010-02-09 22:58:32)

My artwork at deviantART   |   Last FM   |   My Tweet   |   My Blog
Nulla dies sine GIMP!
ASUS Eee PC 1005 HA | 2GB | 160GB | #! 9.04 | ...and #!X Alpha

Re: automatic action (eg rsync) after mounting usb drive?

chmod owner +! just made a quantum leaps into geekdom by cronning My First Shell Script!

read your suggestion too late, rayburn (no internet for a bit). guess i'll stick to my (modest) solution for at least a few more days wink

how did this happen: i'm just having a bit more than a week of toying around with #!, and experiencing such an interesting and encouraging learning curve...