<h1><aid="user-content-backup-my-way"class="anchor"aria-hidden="true"href="#backup-my-way"><spanaria-hidden="true"class="octicon octicon-link"></span></a>Backup my way</h1>
<p>First thing first, I want to list my own devices, which I have through the years:</p>
<ul>
<li><del>Laptop Samsung NP300E4Z-S06VN (Old laptop which I give to my mom)</del></li>
<li><del><ahref="https://www.dell.com/support/home/en-vn/product-support/product/inspiron-15-3567-laptop/drivers"rel="nofollow">Laptop Dell Inspiron 15 3567</a> (My mom bought it for me when I go to college, I give it to my mom afterward)</del></li>
<li><del><ahref="https://www.acer.com/ac/en/US/content/support-product/8841"rel="nofollow">Laptop Acer Nitro AN515-45</a> (Gaming laptop which I buy for gaming, I give it to my sister)</del></li>
<li>MacBook Pro M1 2020 (My company laptop)</li>
<li><del>Phone <ahref="https://forum.xda-developers.com/c/lg-g3.3147/"rel="nofollow">LG G3</a> (Bought long time ago, now is a brick)</del></li>
<li><del>Phone <ahref="https://forum.xda-developers.com/c/xiaomi-redmi-6a.7881/"rel="nofollow">Xiaomi Redmi 6A</a> (I give it to my sister too)</del></li>
<li>Phone <ahref="https://forum.xda-developers.com/c/xiaomi-poco-x3-nfc.11523/"rel="nofollow">Xiaomi Poco X3 NFC</a> (Primary phone which I use daily)</li>
Because you know, it is hard to guess what is waiting for us in the future.</p>
<p>There are 2 sections which I want to share, the first is <strong>How to backup</strong>, the second is <strong>Recover strategy</strong>.</p>
<h2><aid="user-content-how-to-backup"class="anchor"aria-hidden="true"href="#how-to-backup"><spanaria-hidden="true"class="octicon octicon-link"></span></a>How to backup</h2>
<p>Before I talk about backup, I want to talk about data.
In specifically, which data should I backup?</p>
<p>I use Arch Linux and macOS, primarily work in the terminal so I have too many dotfiles, for example, <code>~/.config/nvim/init.lua</code>.
Each time I reinstall Arch Linux (I like it a lot), I need to reconfigure all the settings, and it is time-consuming.</p>
<p>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 <ahref="https://github.com/haunt98/dotfiles">dotfiles tool</a> to backup and reconfigure easily and quickly.
Not because it is hard, but as life goes on, the <ahref="https://wiki.archlinux.org/title/installation_guide"rel="nofollow">official install guide</a> keeps getting new update and covering too many cases for my own personal use, so I write my own <ahref="https://github.com/haunt98/til/blob/main/install-archlinux.md">guide</a> to quickly capture what I need to do.
Also as I travel the Internet, I discover <ahref="https://codeberg.org/"rel="nofollow">Codeberg</a> and <ahref="https://gitea.treehouse.systems/"rel="nofollow">Treehouse</a> and use them as another backup for git repo.</p>
<p>So that is my dotfiles, for my regular data, like Wallpaper or Books, Images, I use Google Drive (Actually I pay for it).
<p>Before you use Rclone to sync to Google Drive, you should read <ahref="https://rclone.org/drive/"rel="nofollow">Google Drive rclone configuration</a> first.</p>
<p>For private data, I use restic which can be used with Rclone:</p>
First thing first, I enable 2-Step Verification for all of my important accounts, should use both OTP and phone method.</p>
<p>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.</p>
<p>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.</p>
<p>With Aegis, I export the data, then sync it to Google Drive, also store it locally in my phone.</p>
<p>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.</p>