diff --git a/2021-11-27-backup.md b/2021-11-27-backup.md index 598b4b1..2a0c7e8 100644 --- a/2021-11-27-backup.md +++ b/2021-11-27-backup.md @@ -1,12 +1,12 @@ -# Backup my own way +# Backup my way First thing first, I want to list my own devices, which I have through the years: - Laptop Samsung NP300E4Z-S06VN (Old laptop which I give to my mom) -- Laptop Dell Inspiron 15 3567 (My mom bought for me when I go to college, I give it to my sister afterward) +- Laptop Dell Inspiron 15 3567 (My mom bought it for me when I go to college, I give it to my sister afterward) - Laptop Acer Nitro AN515-45 (Gaming laptop which I buy for gaming, of course) -- Macbook Pro M1 2020 (My company laptop) -- Phone LG G3 d851 (Kinda broken, the phone I used long time ago) +- MacBook Pro M1 2020 (My company laptop) +- Phone LG G3 d851 (Kinda broken, the phone I used a long time ago) - Phone Xiaomi Poco X3 NFC (Primary phone which I use daily) App/Service I use daily: @@ -20,28 +20,28 @@ App/Service I use daily: - GitHub - GitLab -The purpose is that I want my data is safe, secure and can be easily recoverd if I lost some devices; +The purpose is that I want my data to be safe, secure, and can be easily recovered if I lost some devices; or in the worst situation, I lost all. Because you know, it is hard to guess what is waiting for us in the future. -There are 2 sections which I want to share, first is **How to backup**, the second is **Recover strategy**. +There are 2 sections which I want to share, the first is **How to backup**, the second is **Recover strategy**. ## How to backup Before I talk about backup, I want to talk about data. -Specificially which data should I backup? +In specifically, which data should I backup? -I use Arch Linux and macOS, primarily work in terminal so I have too many dotfiles, for example `~/.config/nvim/init.config`. -Each time I reinstall Arch Linux (I like it a lot), I need to reconfigure all the settings, and it is too much time consuming. +I use Arch Linux and macOS, primarily work in the terminal so I have too many dotfiles, for example, `~/.config/nvim/init.config`. +Each time I reinstall Arch Linux (I like it a lot), I need to reconfigure all the settings, and it is time-consuming. So for the DE and UI settings, I keep it as default as possible, unless it's getting in my way, I leave the default setting there and forget about it. The others are dotfiles, which I write my own [dotfiles tool](https://github.com/haunt98/dotfiles) to backup and reconfigure easily and quickly. -Also I know that, install Arch Linux is not easy, despite I install it too many times (like thounsand times since I was in highschool). -Not because it is hard, but as life goes on, the [official install guide](https://wiki.archlinux.org/title/installation_guide) keeps getting update and cover too much case for my own use, so I write my own [guide](https://github.com/haunt98/til/blob/main/install-archlinux.md) to quickly capture what I need to do. -I backup all my dotfiles inside my dotfiles tool in GitHub and GitLab as I trust them both. +Also, I know that installing Arch Linux is not easy, despite I install it too many times (Like thousand times since I was in high school). +Not because it is hard, but as life goes on, the [official install guide](https://wiki.archlinux.org/title/installation_guide) keeps getting new update and covering too many cases for my own personal use, so I write my own [guide](https://github.com/haunt98/til/blob/main/install-archlinux.md) to quickly capture what I need to do. +I back up all my dotfiles inside my dotfiles tool in GitHub and GitLab as I trust them both. -So that is my dotfiles, for my regular data, like Wallpapers or Books or Images, I use Google Drive (actually I pay for it). -But the step: open the webpage, click the upload button and choose files seems boring and time consuming too me. +So that is my dotfiles, for my regular data, like Wallpaper or Books, Images, I use Google Drive (Actually I pay for it). +But the step: open the webpage, click the upload button and choose files seems boring and time-consuming. So I use Rclone, it supports Google Drive, One Drive and many providers but I only use Google Drive for now. The commands are simple: @@ -55,36 +55,40 @@ rclone sync remote:MyBooks MyBooks -v --exclude .DS_Store Before you use Rclone to sync to Google Drive, you should read [Google Drive rclone configuration](https://rclone.org/drive/) first. -The next data is my passwords, and my OTPs. -These are the things which I scare to lose the most. +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 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) because Aegis allows me to extract all the OTPs to a single file (can be encrypted), which I use to transfer or backup easily. +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 it's apps, extensions so that I can easily sync passwords between laptops and phones. +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 in my main phone, then sync it back to my backup phone. -For safety, I also store Aegis data locally in all of my laptops (encrypted of course). +For safety, I also store Aegis data locally on all of my laptops (Encrypted of course). The rule is you always need 2 phones for OTPs, one for carrying around, one always stays at home. 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 to my OTPs in the cloud, I shoud log in, and then input my OTP, this is a circle my friends. -The easiest answer is the old phone, which is safely at home. +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. +The easiest answer is the old phone, which is safe at home. ## Recovery strategy -There are many strategies which I process to react as if something strange is happening to my devices. +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 is in Bitwarden cloud, other data is in Google Drive so nothing is lost here. +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 main phone, but not my laptop, I use the OTPs which is backup locally in my laptops. +If I lost my main phone, but not my laptop, I use the OTPs which are stored locally in my laptops. If I lost my main phone, and my laptops, I use the OTPs in my old phone. -Then I go to nearest SIM store to recover my SIM, as I register my ID with it. +Then I go to the nearest SIM store to recover my SIM, as I register my ID with it. -The worst situation, I lost everything, my laptops, my phones (main phone and old). -First step is recover my SIM, then log in to Google account using password and SMS OTP. -After that, log in to Bitwarden account using master password and OTP from Gmail, which I open previously. +In the worst situation, I lost everything, my laptops, my phones (Main phone and old). +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.