Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I decided to use rsync for backing up my downloaded torrents from my home-server to my laptop. I read the whole manual, but I didn't find a way to sync files automatically when a new file or directory is added to the complete torrents directory.

The Best thing I could find was running rsync daily by a cron-job, But I want it to be more intelligent, like Ubuntu-One and do the job just when a new thing adds.

share|improve this question
    
cyberciti.biz/faq/… –  quanta May 9 '13 at 13:08
1  
splitbrain.org/blog/2011-01/… –  quanta May 9 '13 at 13:09
    
Check this out, it's a daemon that does what you want: code.google.com/p/lsyncd –  user265736 Apr 5 at 22:04

1 Answer 1

What you're looking for is inotifywait, from the inotify-tools package, which uses the inotify mechanism.

reference:
http://blog.lagentz.com/general/automate-your-shell-scripts-using-inotify-and-inotifywait/
http://linux.die.net/man/1/inotifywait

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.