ArGest Backup User Guide

  1. Home
  2. Docs
  3. ArGest Backup User Guide
  4. Terminal Extract Files: The Restore Function
  5. The -E File Extraction Option

The -E File Extraction Option

When extracting files from an archive, BRU will normally replace an existing file only if the corresponding archive file has a more recent date. For example, if the existing file has a modification date of January 1, 1990, it would be overwritten by an archive file (of the same name) with a date of February 1, 1990. Most of the time, this is the desired behavior.

In some cases, you may not want to overwrite an existing file, even if the archive file is newer. This is often true when doing software updates. For example, a software update may contain configuration files with dates that are newer than existing configuration files. If these carefully created configuration files are overwritten, the software may not work properly and the configuration files will need to be re-created.

The -E option lets you avoid these problems. If -E is specified on the extract command line, BRU will not replace any existing file, even if the archived file is newer. It will only extract files that do not currently exist. The following is a typical use of the -E option:

bru -xv -E

Of course, if you really do want to extract everything from an archive, use the -ua option. This will perform an unconditional extraction. BRU will overwrite all files with the same names as the archived files-regardless of the date. See “Unconditional File Type Extraction: -u,” above. NOTE: The -E and -ua options should not be used together.