-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
72 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Restore using webdav | ||
|
||
Another possibility is browsing your backup as webdav share. This option can be | ||
also used to mount the repository on either remote computers or locally if | ||
`mount` is not supported for your operation system. To start a webdav server, | ||
just run | ||
|
||
```console | ||
$ rustic webdav | ||
``` | ||
|
||
Now you can connect using a standard webdav client. | ||
|
||
**NOTE**: Copying files using `webdav` may be not as efficient as using | ||
`restore` as `restore` is highly optimized and knows in the beginning what | ||
exactly will be restored. | ||
|
||
**NOTE** Keep in mind that every file access via webdav may involve access to | ||
the repository. Especially read access to lots of data may be expensive | ||
depending on the backend. It is not advised to run compare tools or something | ||
like `rsync` if you mount the webdav in case you are use a remote backend. Use | ||
`diff` or `restore` if you want to compare or sync repository content with each | ||
other or with your local saved files. | ||
|
||
**NOTE**: When using a hot/cold repositories, file access is only possible if | ||
the needed data is warmed-up in the cold repository part. By default rustic | ||
therefore forbids file-access by default, see `--file-access` below. | ||
|
||
There are various options which can be used with the `webdav` command (most | ||
similar to [mount](using_mount.md)) | ||
|
||
- You can specify the exact snapshot/path to mount, e.g. | ||
`rustic webdav latest:/home` | ||
- If no snapshot/path is given, all snapshots are displayed in a tree, you can | ||
use `--path-template` and `--time-template` to define the tree structure, e.g. | ||
first group by hostname and then by snapshot date/time. | ||
- `--address` allows you to give the bind address. | ||
- `--symlinks` also enables symlinks. | ||
- `--file-access` allows to restict access to only listing dirs and. |