Skip to content

Commit

Permalink
add note about duplicate backup.
Browse files Browse the repository at this point in the history
  • Loading branch information
jixunmoe committed Sep 28, 2020
1 parent 356412d commit a060c81
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,21 @@ sha256sum /path/to/file | head -c 64 | xxd -r -p > /path/to/file.sha256
cat /path/to/file /path/to/file.sha256 | ssh backup@example.com -- backup-cli save backup1-daily
```

### Duplicate backup

Better to run this inside the backup server.

```shell script
backup-cli load backup1-daily | backup-cli save backup1-weekly
```

To run it over the network:

```shell script
ssh backup@example.com -- backup-cli load backup1-daily \
| ssh backup@example.com -- backup-cli save backup1-weekly
```

## TODO

- [ ] Add Unit test & integration test (partial).
Expand Down
15 changes: 15 additions & 0 deletions README.zh-CN.MD
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,21 @@ sha256sum /path/to/file | head -c 64 | xxd -r -p > /path/to/file.sha256
cat /path/to/file /path/to/file.sha256 | ssh backup@example.com -- backup-cli save backup1-daily
```

### 建立备份副本

推荐在备份服务器上执行。

```shell script
backup-cli load backup1-daily | backup-cli save backup1-weekly
```

如果需要利用 SSH 来传输:

```shell script
ssh backup@example.com -- backup-cli load backup1-daily \
| ssh backup@example.com -- backup-cli save backup1-weekly
```

## TODO

参见英文说明。
Expand Down

0 comments on commit a060c81

Please sign in to comment.