diff --git a/docs/2022-06-08-backup.html b/docs/2022-06-08-backup.html index 3a86da0..61cd8b4 100644 --- a/docs/2022-06-08-backup.html +++ b/docs/2022-06-08-backup.html @@ -197,6 +197,7 @@
# 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
# Sync from remote to local
@@ -221,6 +222,8 @@ restic -r rclone:remote:PrivateData backup PrivateData
restic -r rclone:remote:PrivateData forget --keep-last 1 --prune
# Restore
+# Be careful because restic restore fullpath
+# See https://github.com/restic/restic/issues/2092
restic -r rclone:remote:PrivateData restore latest --target ~
diff --git a/posts/2022-06-08-backup.md b/posts/2022-06-08-backup.md index e5f0e40..cf1e7fe 100644 --- a/posts/2022-06-08-backup.md +++ b/posts/2022-06-08-backup.md @@ -50,6 +50,7 @@ The commands are simple: ```sh # 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 # 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 # Restore +# Be careful because restic restore fullpath +# See https://github.com/restic/restic/issues/2092 restic -r rclone:remote:PrivateData restore latest --target ~ ```