To access the LONE-TAR Restore Menu, please go to the command line as user root and type the following command:
# ltmenu ; then select option 5 (Restore Menu)
|1. Restore entire backup to hard disk||This option will begin a FULL SYSTEM RESTORE to your current hard disk. WARNING: This option should never be used on a system with different hardware, because issues with drivers will pop-up and could cause your system not to boot properly after the restore. See the Restore Additional Features Menu to get more details on flags to help prevent these situations from happening.|
|2. Select files to restore. (Wild-Cards OK)||This option allows you to selectively restore certain files and directories. You may specify as many files and directories as you need for the restore.|
|3. Only restore INclusion list.||This option restores files that reside inside our default Restore Inclsuion list. This file can be modified at anytime by the user. The file that gets created is '/log/restore'|
|4. Only restore Auto-INclusion list.||This option restores files that reside inside our Restore Auto-Inclsuion list. This file can be modified at anytime by the user. This option is useful for users who do not know the exact location of their file but do know the filename itself. This option will search the entire LONE-TAR backup catalog based on your filename and search all files matching that string and place the full pathname into a file. The file that gets created is '/log/greprestore'|
|5. Fast Seek Restore||This option is for Tape Backups ONLY. Compares the Tape Label to the user specific LONE-TAR catalog, and searches the exact location of the file to restore, so that the file is restored quickly without having to read through the entire volume.|
|6. Inclusion List Menu||This option allows you to modify our exclusion lists for restores right from the menu. You can view, remove, create or edit using 'vi'. All of the exclusion lists reside in the '/log' directory. Restore exclusion list file ==> /log/exclude.R|
|7. Auto Inclusion List||This option allows you to modify our Auto-exclusion list for restores right from the menu. You can view, remove, create, append an existing list, and edit using 'vi'. All of the exclusion lists reside in the '/log' directory. Restore exclusion list file ==> /log/exclude.R|
|8. Exclusion List Menu||This option allows you to modify the Restore Exclusion list before doing a FULL SYSTEM RESTORE. You can view, remove, create, or edit using 'vi'.|
|9. Additional Features Menu||This option allows the user to enable special restore options to any restore so that it can do specific things. For example, instead of restoring files to its original place on the hard disk, you can restore to a different directory. Or enable a non-destructive restore. All features are given in more detail below.|
|10. TAPE-TELL™ Display tape creation date||This option is for Tape Backups ONLY. Reads the tape label of your backup to know exactly when it ran, type of backup, and was it successful.|
|H. Help Screen||Displays useful help about restores and how to address certain issues most users have with restores.|
|Q. Quit||Quit back to the LONE-TAR Main Menu|
Special RESTORE Options Menu
|1. Non-Destructive||If the same file exists on the tape and on the hard drive, the file on the tape will NOT get restored.
The -N flag is used here.
|2. Interactive Non-Destructive||If the same file exists on the tape and on the hard drive, then you will be prompted to take action. You will be able to skip, over-write, or rename the file from the tape to the hard drive.
The -Nw flag is used here.
|3. Flat file restore||Lets say you want to restore '/usr/jeff/data/*.dat' files directly into '/tmp'... a FLAT file restore will do exactly that. It will strip OFF the directory name '/usr/jeff/data' and put all the files ending in '*.dat' into the '/tmp' directory. You can use any directory you wish during this option.
The -zWHERE and -zFLAT flags are used here.
|4. Relative Restore to this directory||Lets say you want to restore certain files, directories or the entire tape under the '/u' directory. You would simply set this option to '/u' and all data will RESTORE relative to '/u'. You can use any directory you wish during this option.
The -zWHERE and -A flag are used here.
|5. Before this date||Files dated BEFORE this date will be restored. Make sure you use the correct format mm/dd/yy.
The -zDATEBEFORE flag is used here.
|6. After this date||Files dated AFTER this date will be restored. Make sure you use the correct format mm/dd/yy.
The -zDATE flag is used here.
|7. Only restore files newer on backup||All files on the hard drive that are OLDER than those on the tape are restored. This option ensures that only the newest copy of a file is restored. If the file does not exist on the hard drive, it will be created.
The -U flag is used here.
|8. Trim to 14 characters||This is necessary to use when restoring a file that is more then 14 characters in length on the tape, to a system the does not allow file names greater then 14 characters. Any characters greater then 14 in length, will get truncated.
The -zTRIM14 flag is used here.
|9. DOS-TAR™ No Conversion||Media created using Cactus International DOS-TAR can be restored without converting C/R and L/F for UNIX. By default Lone-Tar WILL do the conversion. If you wish to leave the DOS files untouched, then select this option.
The -zNOCNVT flag is used here.
|10. Get real data of a Symbolic Link||When restoring a symbolic link, will also restore the file containing the real data of the symbolic link as well. Both files must exist on the backup tape for the restore to be successful. You would not need to use this option when restoring
the entire tape. You would only want to consider this option when doing a selective restore, and you're not sure if the files you're selecting to restore are only symbolic links. A good example (SCO OSR5) would be restoring:
The 2 examples above are symbolic links only. Type the command 'ls -l file_name' to see if a file is a link.
Permissions would look like:
lrwxrwxrwx 1 root other 9 Jun 11 14:25 symlink -> /tmp/data
^_____ This 'l' (ELL) means a symbolic link.
The LONE-TAR '-h' flag is used here.
|11. Modify Location of Symbolic Link||Let us say you want to restore a complete system to a different directory. For example, you have version 5.2 of an operation system and upgrade the operating system to version 5.4. You have plenty of hard disk space and want to have an exact replica of the old operating system under a directory called /os5.2.
If you were to simply restore the files to /os5.2, there could be symbolic links to files outside of the directory /os5.2. You can be sure that all symbolic links are corralled in the /os5.2 directory by using the
You can restore the Master backup of the the 5.2 operating system
# cd /os5.2
# lonetar -xv8 -zSYMLINK_ADJ=/os5.2
This will restore all files on the Master Backup tape to the /os5.2 directory. Any symbolic links that would otherwise be outside of /os5.2 are made relative to /os5.2. For example, if a file ./usr/medical/patient.dat was a symbolic link to
|12. White-Space file restore||There may be a time when you need to only restore a file or directory that has a blank space in the name. We call this a file with "White Space". These are usually NOT a UNIX or LINUX file, but instead a Windows or DOS file.
UNIX tends to not like file names with white space. By turning ON this feature will allow you to restore these files. This feature has NO effect when using an INclusion restore list. It ONLY takes effect when you select the option that says:
Option #2 from Restore Main Menu ==> Select files to restore. (Wild-Cards OK)br />
Here's an example of a file name with white space:
^---------- blank space.
|H. Help screen||Displays all information in this table above from the software itself.|
|Q. Quit||Quit back to the LONE-TAR Main Menu.|