it needs to do the following tasks for us..
The script will ask the user which directory they wish to backup?
the backup will 'ask' the user for the full pathname of the backup to create
also i need the script to ask the users in my family if they need to do another backup?
and if the user enters n=no.
Thankyou guys I have a backup script i wrote but i need these extra features and i cant see how to write the code for them.
Thanks heaps
Last edited by keef12345; Nov 3rd, 2007 at 6:46 pm.
-message {Do you wish to backup another directory?} \
-type yesno]
set done [expr{$ans eq {no}}]
}
}
main
# end
This should work on any platform that has Tcl/Tk installed. Since you are using Fedora linux I forsee no problems.
Tcl code is pretty simple, so you can change things as you see fit. The stuff of greatest interest are where you see -initialdir
and the actual backup command: tar czf $filename $dirname
This of course requires that your tar command understands the z option. If it doesn't (because it is ancient), just split the commands:
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Previous Thread in Shell Scripting Forum Timeline:time command