From ac9eeaab1e277a9264ce87f361410e68ef787752 Mon Sep 17 00:00:00 2001 From: Hau Nguyen Date: Sat, 3 Dec 2022 14:43:46 +0700 Subject: [PATCH] feat: add restic restore --- docs/2022-06-08-backup.html | 3 +++ posts/2022-06-08-backup.md | 3 +++ 2 files changed, 6 insertions(+) diff --git a/docs/2022-06-08-backup.html b/docs/2022-06-08-backup.html index e83dc27..80e0ddf 100644 --- a/docs/2022-06-08-backup.html +++ b/docs/2022-06-08-backup.html @@ -11,5 +11,8 @@ restic -r rclone:remote:PrivateData backup PrivateData # Cleanup old backups restic -r rclone:remote:PrivateData forget --keep-last 1 --prune + +# Restore +restic -r rclone:remote:PrivateData restore latest --target ~

The next data is my passwords and my OTPs.
These are the things which I'm scare to lose the most.
First thing first, I enable 2-Step Verification for all of my important accounts, should use both OTP and phone method.

I use Bitwarden for passwords (That is a long story, coming from Google Password manager to Firefox Lockwise and then settle down with Bitwarden) and Aegis for OTPs.
The reason I choose Aegis, not Authy (I use Authy for so long but Aegis is definitely better) is because Aegis allows me to extract all the OTPs to a single file (Can be encrypted), which I use to transfer or backup easily.

As long as Bitwarden provides free passwords stored, I use all of its apps, extensions so that I can easily sync passwords between laptops and phones.
The thing I need to remember is the master password of Bitwarden in my head.

With Aegis, I export the data, then sync it to Google Drive, also store it locally in my phone.

The main problem here is the OTP, I can not store all of my OTPs in the cloud completely.
Because if I want to access my OTPs in the cloud, I should log in, and then input my OTP, this is a circle, my friends.

Recovery strategy

There are many strategies that I process to react as if something strange is happening to my devices.

If I lost my laptops, single laptop or all, do not panic as long as I have my phones.
The OTPs are in there, the passwords are in Bitwarden cloud, other data is in Google Drive so nothing is lost here.

If I lost my phone, but not my laptops, I use the OTPs which are stored locally in my laptops.

In the worst situation, I lost everything, my laptops, my phone.
The first step is to recover my SIM, then log in to Google account using the password and SMS OTP.
After that, log in to Bitwarden account using the master password and OTP from Gmail, which I open previously.

The end

This guide will be updated regularly I promise.

Feel free to ask me via email Mastodon \ No newline at end of file diff --git a/posts/2022-06-08-backup.md b/posts/2022-06-08-backup.md index 9326ba3..ab79d76 100644 --- a/posts/2022-06-08-backup.md +++ b/posts/2022-06-08-backup.md @@ -68,6 +68,9 @@ restic -r rclone:remote:PrivateData backup PrivateData # Cleanup old backups restic -r rclone:remote:PrivateData forget --keep-last 1 --prune + +# Restore +restic -r rclone:remote:PrivateData restore latest --target ~ ``` The next data is my passwords and my OTPs.