![](https://seccdn.libravatar.org/avatar/e01b8e9d7672014c0a2b6cf5b65a67e6.jpg?s=120&d=mm&r=g)
On Thu, Jan 13, 2011 at 05:43:03PM +0700, C. Brouerius van Nidek wrote:
Hope to find an answer on a problem with luckyBackup. Like the program and have instructed to backup the contents every night from my home on a usb stick.via cron. That works like a charm. Yesterday I forgot to put the stick in and this morning I found that luckyBackup had made a new directory on / filling that partition up to 100%. Is there a method to avoid such things from happening? Something like: if there is no USB stick inserted, do not backup.
Use e2label and set by this get a unique name of the mount point. Then check if /media/<unique_name> exits before you start the sync. Such a stick very likely already has some kind of ID as hard disks have. See /dev/disk/by-id/ Lars -- Lars Müller [ˈlaː(r)z ˈmʏlɐ] Samba Team SUSE Linux, Maxfeldstraße 5, 90409 Nürnberg, Germany