[opensuse] luckyBackup problem
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. -- Linux User 183145 using LXDE on a Pentium IV , powered by openSUSE 11.3 (i586) Kernel: 2.6.37-desktop LXDE WM & KDE Development Platform: 4.5.95 (4.6 RC2) 14:10pm up 3:18, 2 users, load average: 0.53, 0.31, 0.27 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 13/01/11 10:43, 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.
You could change the cron job to be something like: grep -q "/media/usb" /proc/mounts && backup or mount | grep -q "/media/usb" && backup Substituting the backup command/mount folder as necessary ofc A few tests should quickly show what works on your system. Regards, Tejas -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
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
Am Donnerstag, 13. Januar 2011, 11:43:03 schrieb C. Brouerius van Nidek:
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.
You should file a bug at bugs.kde.org and get it fixed in order not to have to work around that issue in the medium-term. Sven -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (4)
-
C. Brouerius van Nidek
-
Lars Müller
-
Sven Burmeister
-
Tejas Guruswamy