mirror of
https://github.com/octoleo/restic.git
synced 2024-11-27 07:16:40 +00:00
update restore --overwrite documentation
This commit is contained in:
parent
5c3709e17a
commit
3ec28ff853
@ -1,11 +1,22 @@
|
|||||||
Enhancement: Make overwrite behavior of `restore` customizable
|
Enhancement: Make overwrite behavior of `restore` customizable
|
||||||
|
|
||||||
The `restore` command now supports an `--overwrite` option to configure whether
|
The `restore` command now supports an `--overwrite` option to configure whether
|
||||||
already existing files are overwritten. The default is `--overwrite always`,
|
already existing files are overwritten. This behavior can now be configured via
|
||||||
which overwrites existing files. `--overwrite if-newer` only restores files
|
the `--overwrite` option. The following values are supported:
|
||||||
from the snapshot that are newer than the local state. And `--overwrite never`
|
|
||||||
does not modify existing files.
|
* `--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.
|
||||||
|
|
||||||
https://github.com/restic/restic/issues/4817
|
https://github.com/restic/restic/issues/4817
|
||||||
https://github.com/restic/restic/issues/200
|
https://github.com/restic/restic/issues/200
|
||||||
|
https://github.com/restic/restic/issues/407
|
||||||
|
https://github.com/restic/restic/issues/2662
|
||||||
https://github.com/restic/restic/pull/4837
|
https://github.com/restic/restic/pull/4837
|
||||||
|
https://github.com/restic/restic/pull/4838
|
||||||
|
@ -91,11 +91,20 @@ stored explicitly.
|
|||||||
Restoring in-place
|
Restoring in-place
|
||||||
------------------
|
------------------
|
||||||
|
|
||||||
By default, the ``restore`` command overwrites already existing files in the target
|
By default, the ``restore`` command overwrites already existing files at the target
|
||||||
directory. This behavior can be configured via the ``--overwrite`` option. The
|
directory. This behavior can be configured via the ``--overwrite`` option. The following
|
||||||
default is ``--overwrite always``. To only overwrite existing files if the file in
|
values are supported:
|
||||||
the snapshot is newer, use ``--overwrite if-newer``. To never overwrite existing files,
|
|
||||||
use ``--overwrite never``.
|
* ``--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
|
Restore using mount
|
||||||
===================
|
===================
|
||||||
|
Loading…
Reference in New Issue
Block a user