feat: improve backup (1/?)
parent
3ad375308d
commit
d65e086920
|
@ -197,6 +197,7 @@
|
||||||
</p>
|
</p>
|
||||||
<div class="highlight highlight-source-shell">
|
<div class="highlight highlight-source-shell">
|
||||||
<pre><span class="pl-c"><span class="pl-c">#</span> Sync from local to remote</span>
|
<pre><span class="pl-c"><span class="pl-c">#</span> Sync from local to remote</span>
|
||||||
|
<span class="pl-c"><span class="pl-c">#</span> remote can be gdrive, 1drive, ..., anything you previously config with rclone</span>
|
||||||
rclone sync MyBooks remote:MyBooks -P --exclude .DS_Store
|
rclone sync MyBooks remote:MyBooks -P --exclude .DS_Store
|
||||||
|
|
||||||
<span class="pl-c"><span class="pl-c">#</span> Sync from remote to local</span>
|
<span class="pl-c"><span class="pl-c">#</span> Sync from remote to local</span>
|
||||||
|
@ -221,6 +222,8 @@ restic -r rclone:remote:PrivateData backup PrivateData
|
||||||
restic -r rclone:remote:PrivateData forget --keep-last 1 --prune
|
restic -r rclone:remote:PrivateData forget --keep-last 1 --prune
|
||||||
|
|
||||||
<span class="pl-c"><span class="pl-c">#</span> Restore</span>
|
<span class="pl-c"><span class="pl-c">#</span> Restore</span>
|
||||||
|
<span class="pl-c"><span class="pl-c">#</span> Be careful because restic restore fullpath</span>
|
||||||
|
<span class="pl-c"><span class="pl-c">#</span> See https://github.com/restic/restic/issues/2092</span>
|
||||||
restic -r rclone:remote:PrivateData restore latest --target <span class="pl-k">~</span></pre>
|
restic -r rclone:remote:PrivateData restore latest --target <span class="pl-k">~</span></pre>
|
||||||
</div>
|
</div>
|
||||||
<p>
|
<p>
|
||||||
|
|
|
@ -50,6 +50,7 @@ The commands are simple:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
# Sync from local to remote
|
# Sync from local to remote
|
||||||
|
# remote can be gdrive, 1drive, ..., anything you previously config with rclone
|
||||||
rclone sync MyBooks remote:MyBooks -P --exclude .DS_Store
|
rclone sync MyBooks remote:MyBooks -P --exclude .DS_Store
|
||||||
|
|
||||||
# Sync from remote to local
|
# Sync from remote to local
|
||||||
|
@ -71,6 +72,8 @@ restic -r rclone:remote:PrivateData backup PrivateData
|
||||||
restic -r rclone:remote:PrivateData forget --keep-last 1 --prune
|
restic -r rclone:remote:PrivateData forget --keep-last 1 --prune
|
||||||
|
|
||||||
# Restore
|
# Restore
|
||||||
|
# Be careful because restic restore fullpath
|
||||||
|
# See https://github.com/restic/restic/issues/2092
|
||||||
restic -r rclone:remote:PrivateData restore latest --target ~
|
restic -r rclone:remote:PrivateData restore latest --target ~
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue