infinitycircuit
Group: Members
Posts: 18
Joined: May 2007 |
|
Posted: Aug. 12 2007,16:31 |
|
This is a very interesting script!
One thing to suggest is that in Option 3, you mention that backing up at this point will not allow you to use the fluxbox menu icon to backup. You could add in an option to use sed to remove the line that starts the backup from ~/.fluxbox/menu, if it exists. For example:
Code Sample | BACKUP_MENU_ENTRY=`grep "BACKUP SYSTEM" /hda1/home/dsl/.fluxbox/menu` sed -e 's/"$BACKUP_MENU_ENTRY"//'
|
I'm not a very proficient coder so this might not work/this might cause other problems, but I think it will work.
Similarly, you could add the option to exclude certain files from the backup. For instance, a user might not want to back up their videos. You could do this by replacing the tar command with:
Code Sample | find /hda1 > /tmp/files_to_backup.lst echo "Please enter each file or folder you don't wish to backup on a separate line, ending with "EOF"." cat << EOF > /tmp/files_to_avoid.lst tar -C /hda1 -T /tmp/files_to_backup.lst -X /tmp/files_to_avoid.lst zxvpsf hda3/hda1backup.tar.gz
|
Those are some simple (maybe erroneous) suggestions that I think might help the script.
|