Not backing up to a bad deviceForum: DSL Ideas and Suggestions Topic: Not backing up to a bad device started by: WDef Posted by WDef on Sep. 30 2005,16:41
If you enter a non-existent device name in the backup/restore widget, backup/restore fails but the garbage name gets stored in /opt/.backup_device anyway.If you forget and reboot, the automated backup from powerdown.sh tries to backup to this non-existent device and fails --> work lost. One fix is to: 1. Test for a bad device name at the beginning of filetool.sh (eg)
2. Change filetool.sh so that it only stores the device name if backup/restore is successful eg a "clean-up" function including:
3. Remove the write to /opt/.backup_device from dsl-restore.sh. Also, filetool.sh can do the mount test on the device name etc 4. filetool.lua can then be simplified:
I tried these ideas in the updated fast backup scripts posted < here > today. (lzop does not have to be used) |