You are not logged in.
Pages: 1
I would like to know if there is a way to synchronize my USB stick with a certain folder on my HDD. By synchronizing, I mean that I want files on the HDD to replace those files on the USB stick that are older. I guess it is possible with Cron, but since I am a not yet a pro with the shell commands, I need some help out there.
It would be also nice if the sync could start automatically as soon as the USB stick is mounted and/or every hour, and that all with a nice gui. Is there such a programm?
Last edited by ermin (2009-07-18 10:52:16)
Offline
I doesn't sounds like exactly what you are looking for, but the best app I've found for syncing folders is unison. I think there is a command line mode (as well as the GUI I usually use), so maybe you could schedule it with cron.
Offline
May be worth looking at rsync, there is also a GUI called Grsync.
All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.
Offline
Yeah with rsync, but rsync is not enough, you must call rsync in the related udev rule, if you would like to do it automatically after plug-in.
Hope this helps.
Offline
I have decided to use rsync and cron:
*/30 * * * * rsync -apvb --delete /source/folder /destination/folder > /home/user/usb_backup_log
This seems to work fine. I still have one concern: If the usb stick is taken out, without unmounting, it can lead to data loss.
Any rsync option for that? Or should i just periodically remount the usb stick with cron?
Offline
Pages: 1