docs: edit readme
This commit is contained in:
@@ -32,13 +32,19 @@ Visit [GitHub](https://github.com/rclone/rclone) for more storage system tutoria
|
|||||||
You can get the token by the following command.
|
You can get the token by the following command.
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
docker run --rm -it --mount source=bitwardenrs-rclone-data,target=/config/ ttionya/bitwardenrs-backup:latest rclone config
|
docker run --rm -it \
|
||||||
|
--mount type=volume,source=bitwardenrs-rclone-data,target=/config/ \
|
||||||
|
ttionya/bitwardenrs-backup:latest \
|
||||||
|
rclone config
|
||||||
```
|
```
|
||||||
|
|
||||||
After setting, check the configuration content by the following command.
|
After setting, check the configuration content by the following command.
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
docker run --rm -it --mount source=bitwardenrs-rclone-data,target=/config/ ttionya/bitwardenrs-backup:latest rclone config show
|
docker run --rm -it \
|
||||||
|
--mount type=volume,source=bitwardenrs-rclone-data,target=/config/ \
|
||||||
|
ttionya/bitwardenrs-backup:latest \
|
||||||
|
rclone config show
|
||||||
|
|
||||||
# Microsoft Onedrive Example
|
# Microsoft Onedrive Example
|
||||||
# [YouRemoteName]
|
# [YouRemoteName]
|
||||||
@@ -61,7 +67,7 @@ docker run -d \
|
|||||||
--restart=always \
|
--restart=always \
|
||||||
--name bitwardenrs_backup \
|
--name bitwardenrs_backup \
|
||||||
--volumes-from=bitwardenrs \
|
--volumes-from=bitwardenrs \
|
||||||
--mount source=bitwardenrs-rclone-data,target=/config/ \
|
--mount type=volume,source=bitwardenrs-rclone-data,target=/config/ \
|
||||||
-e RCLONE_REMOTE_NAME="YouRemoteName"
|
-e RCLONE_REMOTE_NAME="YouRemoteName"
|
||||||
ttionya/bitwardenrs-backup:latest
|
ttionya/bitwardenrs-backup:latest
|
||||||
```
|
```
|
||||||
@@ -92,11 +98,13 @@ You need to stop the Docker container before the restore.
|
|||||||
|
|
||||||
Because the host's files are not accessible in the Docker container, you need to map the directory where the backup files that need to be restored are located to the docker container.
|
Because the host's files are not accessible in the Docker container, you need to map the directory where the backup files that need to be restored are located to the docker container.
|
||||||
|
|
||||||
|
And go to the directory where your backup files are located.
|
||||||
|
|
||||||
If you are using automatic backups, please confirm the bitwarden_rs volume and replace the `--mount` `source` section.
|
If you are using automatic backups, please confirm the bitwarden_rs volume and replace the `--mount` `source` section.
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
docker run --rm -it \
|
docker run --rm -it \
|
||||||
--mount type=bind,source=bitwardenrs-data,target=/bitwarden/data/ \
|
--mount type=volume,source=bitwardenrs-data,target=/bitwarden/data/ \
|
||||||
--mount type=bind,source=$(pwd),target=/bitwarden/restore/ \
|
--mount type=bind,source=$(pwd),target=/bitwarden/restore/ \
|
||||||
ttionya/bitwardenrs-backup:latest restore \
|
ttionya/bitwardenrs-backup:latest restore \
|
||||||
[OPTIONS]
|
[OPTIONS]
|
||||||
|
|||||||
Reference in New Issue
Block a user