mirror of
https://github.com/restic/restic.git
synced 2025-08-23 17:55:17 +00:00
update restore --overwrite documentation
This commit is contained in:
@@ -91,11 +91,20 @@ stored explicitly.
|
||||
Restoring in-place
|
||||
------------------
|
||||
|
||||
By default, the ``restore`` command overwrites already existing files in the target
|
||||
directory. This behavior can be configured via the ``--overwrite`` option. The
|
||||
default is ``--overwrite always``. To only overwrite existing files if the file in
|
||||
the snapshot is newer, use ``--overwrite if-newer``. To never overwrite existing files,
|
||||
use ``--overwrite never``.
|
||||
By default, the ``restore`` command overwrites already existing files at the target
|
||||
directory. This behavior can be configured via the ``--overwrite`` option. The following
|
||||
values are supported:
|
||||
|
||||
* ``--overwrite always`` (default): always overwrites already existing files. ``restore``
|
||||
will verify the existing file content and only restore mismatching parts to minimize
|
||||
downloads. Updates the metadata of all files.
|
||||
* ``--overwrite if-changed``: like the previous case, but speeds up the file content check
|
||||
by assuming that files with matching size and modification time (mtime) are already up to date.
|
||||
In case of a mismatch, the full file content is verified. Updates the metadata of all files.
|
||||
* ``--overwrite if-newer``: only overwrite existing files if the file in the snapshot has a
|
||||
newer modification time (mtime).
|
||||
* ``--overwrite never``: never overwrite existing files.
|
||||
|
||||
|
||||
Restore using mount
|
||||
===================
|
||||
|
Reference in New Issue
Block a user