diff --git a/docs/2022-06-08-backup.html b/docs/2022-06-08-backup.html index b0c0241..fc18146 100644 --- a/docs/2022-06-08-backup.html +++ b/docs/2022-06-08-backup.html @@ -1,4 +1,4 @@ -Index
First thing first, I want to list my own devices, which I have through the years:
App/Service I use daily:
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, the first is How to backup, the second is Recover strategy.
Before I talk about backup, I want to talk about data.
In specifically, which data should I backup?
I use Arch Linux and macOS, primarily work in the terminal so I have too many dotfiles, for example, ~/.config/nvim/init.lua
.
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 to backup and reconfigure easily and quickly.
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 keeps getting new update and covering too many cases for my own personal use, so I write my own guide 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.
Also as I travel the Internet, I discover Codeberg and Treehouse and use them as another backup for git repo.
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:
# Sync from local to remote
+IndexBackup 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 it for me when I go to college, I give it to my mom afterward)Laptop Acer Nitro AN515-45 (Gaming laptop which I buy for gaming, I give it to my sister)- MacBook Pro M1 2020 (My company laptop)
Phone LG G3 (Bought long time ago, now is a brick)Phone Xiaomi Redmi 6A (I give it to my sister too)- Phone Xiaomi Poco X3 NFC (Primary phone which I use daily)
App/Service I use daily:
- Bitwarden
- Aegis Authenticator
- Rclone
- restic
- Tailscale
- GitHub / GitLab
- Google Keep / Notion
- Google Drive (I use 200GB plan)
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, 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.
In specifically, which data should I backup?
I use Arch Linux and macOS, primarily work in the terminal so I have too many dotfiles, for example, ~/.config/nvim/init.lua
.
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 to backup and reconfigure easily and quickly.
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 keeps getting new update and covering too many cases for my own personal use, so I write my own guide 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.
Also as I travel the Internet, I discover Codeberg and Treehouse and use them as another backup for git repo.
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:
# Sync from local to remote
rclone sync MyBooks remote:MyBooks -P --exclude .DS_Store
# Sync from remote to local
diff --git a/posts/2022-06-08-backup.md b/posts/2022-06-08-backup.md
index a4af4ad..277e691 100644
--- a/posts/2022-06-08-backup.md
+++ b/posts/2022-06-08-backup.md
@@ -2,11 +2,13 @@
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](https://www.dell.com/support/home/en-vn/product-support/product/inspiron-15-3567-laptop/drivers) (My mom bought it for me when I go to college, I give it to my sister afterward)
-- [Laptop Acer Nitro AN515-45](https://www.acer.com/ac/en/US/content/support-product/8841) (Gaming laptop which I buy for gaming, of course)
+- ~~Laptop Samsung NP300E4Z-S06VN (Old laptop which I give to my mom)~~
+- ~~[Laptop Dell Inspiron 15 3567](https://www.dell.com/support/home/en-vn/product-support/product/inspiron-15-3567-laptop/drivers) (My mom bought it for me when I go to college, I give it to my mom afterward)~~
+- ~~[Laptop Acer Nitro AN515-45](https://www.acer.com/ac/en/US/content/support-product/8841) (Gaming laptop which I buy for gaming, I give it to my sister)~~
- MacBook Pro M1 2020 (My company laptop)
-- Phone Xiaomi Poco X3 NFC (Primary phone which I use daily)
+- ~~Phone [LG G3](https://forum.xda-developers.com/c/lg-g3.3147/) (Bought long time ago, now is a brick)~~
+- ~~Phone [Xiaomi Redmi 6A](https://forum.xda-developers.com/c/xiaomi-redmi-6a.7881/) (I give it to my sister too)~~
+- Phone [Xiaomi Poco X3 NFC](https://forum.xda-developers.com/c/xiaomi-poco-x3-nfc.11523/) (Primary phone which I use daily)
App/Service I use daily: