X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Documentation%2Fbup-restore.md;h=a7c246eacb08491a1a0b0a35df28363d345c125a;hb=e059fb80731c631d364f4c56e7202ed16e98ad84;hp=eb720b3420c358ee842899c7f291ef47428c9cbe;hpb=13b59736618fc6a603d06a8d438f561d7f9696fb;p=bup.git diff --git a/Documentation/bup-restore.md b/Documentation/bup-restore.md index eb720b3..a7c246e 100644 --- a/Documentation/bup-restore.md +++ b/Documentation/bup-restore.md @@ -8,8 +8,8 @@ bup-restore - extract files from a backup set # SYNOPSIS -bup restore [\--outdir=*outdir*] [\--exclude-rx *pattern*] [-v] [-q] -\ +bup restore [-r *host*:[*path*]] [\--outdir=*outdir*] [\--exclude-rx *pattern*] +[\--exclude-rx-from *filename*] [-v] [-q] \ # DESCRIPTION @@ -48,6 +48,11 @@ path/to/dir/.), `bup restore` will do exactly what it would have done for path/to/dir, and then restore _dir_'s metadata to the current directory (or the `--outdir`). See the EXAMPLES section. +As a special case, if _some/where_ names the "latest" symlink, +e.g. `bup restore /foo/latest`, then bup will act exactly as if the +save that "latest" points to had been specified, and restore that, +rather than the "latest" symlink itself. + Whenever path metadata is available, `bup restore` will attempt to restore it. When restoring ownership, bup implements tar/rsync-like semantics. It will normally prefer user and group names to uids and @@ -88,6 +93,14 @@ See the EXAMPLES section for a demonstration. # OPTIONS +-r, \--remote=*host*:*path* +: restore the backup set from the given remote server. If + *path* is omitted, uses the default path on the remote + server (you still need to include the ':'). The connection to the + remote server is made with SSH. If you'd like to specify which port, user + or private key to use for the SSH connection, we recommend you use the + `~/.ssh/config` file. + -C, \--outdir=*outdir* : create and change to directory *outdir* before extracting the files. @@ -117,6 +130,15 @@ See the EXAMPLES section for a demonstration. * '/foo/.' - exclude the content of any directory named foo * '^/tmp/.' - exclude root-level /tmp's content, but not /tmp itself +\--exclude-rx-from=*filename* +: read --exclude-rx patterns from *filename*, one pattern per-line + (may be repeated). Ignore completely empty lines. + +\--sparse +: write output data sparsely when reasonable. Currently, reasonable + just means "at least whenever there are 512 or more consecutive + zeroes". + \--map-user *old*=*new* : for every path, restore the *old* (saved) user name as *new*. Specifying "" for *new* will clear the user. For example @@ -151,12 +173,12 @@ See the EXAMPLES section for a demonstration. file and directory. -q, \--quiet -: don't show the progress meter. Normally, is stderr is - a tty, a progress display is printed that shows the - total number of files restored. +: suppress output, including the progress meter. Normally, if + stderr is a tty, a progress meter displays the total number of + files restored. + +# EXAMPLES -# EXAMPLE - Create a simple test backup set: $ bup index -u /etc