mikshaw
Group: Members
Posts: 4856
Joined: July 2004 |
|
Posted: April 18 2006,21:04 |
|
I don't think you can do that with backup/restore. I believe a backup needs a specific name (backup.tar.gz) and needs to be placed in the root of a partition. You can, however, rename a backup and put it in a subdirectory on the pendrive for profile-specific loading (mydsl=sda1/work). The problem with doing this is that mydsl packages are not dynamic like backups are...you would be loading the same files each time you boot.
As with everything else in Linux, there is at least one work-around, if you have the desire to tweak your shutdown script a few times. If you added a piece of code to the end of it (after the part where the backup is run) which moves and renames your backup to the appropriate location, you could have your backups being dynamically converted to mydsl extensions so they can be up to date and restored from a specific location. In order for this to work you would need to create a unique shutdown.sh (i think that's the name of the script...i'm not certain at the moment) for each profile. This means you'll initially need to edit the script, run the script, edit the script for the next profile, run it, etc., until you have a unique backup for each desired backup. You will also need to make sure that the shutdown script is included in .filetool.lst. If done correctly, the backup/restore will be sent to and retreived from subdirectories after that.
Another option is to create additional partitions on your pendrive, one for each backup.
-------------- http://www.tldp.org/LDP/intro-linux/html/index.html
|