www.delorie.com/gnu/docs/tar/tar_86.html   search  
 
Buy GNU books!


GNU tar

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.7 Using the Restore Script

(This message will disappear, once this node revised.)

Warning: The GNU tar distribution does not provide any such restore script yet. This section is only listed here for documentation maintenance purposes. In any case, all contents is subject to change as things develop.

@quote-arg

To restore files that were archived using a scripted backup, use the restore script. The syntax for the script is:

where ***** are the file systems to restore from, and ***** is a regular expression which specifies which files to restore. If you specify --all, the script restores all the files in the file system.

You should start the restore script with the media containing the first volume of the archive mounted. The script will prompt for other volumes as they are needed. If the archive is on tape, you don't need to rewind the tape to to its beginning--if the tape head is positioned past the beginning of the archive, the script will rewind the tape as needed. @quote-arg -xref{Media}, for a discussion of tape positioning.

If you specify `--all' as the files argument, the restore script extracts all the files in the archived file system into the active file system.

Warning: The script will delete files from the active file system if they were not in the file system when the archive was made.

See section 5.2 Using tar to Perform Incremental Dumps, and 5.2 Using tar to Perform Incremental Dumps, for an explanation of how the script makes that determination.

@quote-arg


  webmaster   donations   bookstore     delorie software   privacy  
  Copyright © 2003   by The Free Software Foundation     Updated Jun 2003  

Please take a moment to fill out this visitor survey
You can help support this site by visiting the advertisers that sponsor it! (only once each, though)