1
0
mirror of https://github.com/gilbertchen/duplicacy synced 2026-01-07 11:03:50 +00:00

Updated Multiple repositories with different accounts of the same cloud storage service (markdown)

gilbertchen
2018-01-23 21:43:48 -05:00
parent 0c94c996db
commit 212f4de66e

@@ -1,6 +1,7 @@
Below are step-by-step instructions for setting up two repositories, each of which backs up to a different account of the same cloud storage (Google Drive in this case).
1) Run the `init` command in `folder1`:
#### Run the `init` command in `folder1`:
```
cd path/to/folder1
duplicacy init -storage-name gcd1 folder1 gcd://storage1
@@ -30,7 +31,7 @@ You can also run the `set` command to save the token file path in the `preferenc
duplicacy set -key gcd_token -value /path/to/tokenfile1
```
2) Run the `init` command in `folder2`:
#### Run the `init` command in `folder2`:
```
cd path/to/folder2
@@ -65,12 +66,13 @@ duplicacy set -key gcd_token -value /path/to/tokenfile2
This is because the `set` command writes the key/value pair to the `preferences` file, which is per repository, so there won't be any conflict here.
3) To perform the backup of `folder1` use the command:
#### To perform the backup of `folder1` use the command:
```
cd /path/to/folder1; duplicacy backup -storage gcd1
```
4) To perform the backup of `folder2` use the command:
#### To perform the backup of `folder2` use the command:
```
cd /path/to/folder2; duplicacy backup -storage gcd1
```