366 lines
12 KiB
HTML
366 lines
12 KiB
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<link
|
|
rel="stylesheet"
|
|
href="https://cdnjs.cloudflare.com/ajax/libs/github-markdown-css/5.8.1/github-markdown.min.css"
|
|
integrity="sha512-BrOPA520KmDMqieeM7XFe6a3u3Sb3F1JBaQnrIAmWg3EYrciJ+Qqe6ZcKCdfPv26rGcgTrJnZ/IdQEct8h3Zhw=="
|
|
crossorigin="anonymous"
|
|
referrerpolicy="no-referrer"
|
|
/>
|
|
<title>haunt98 posts</title>
|
|
</head>
|
|
<style>
|
|
.markdown-body {
|
|
box-sizing: border-box;
|
|
min-width: 200px;
|
|
max-width: 980px;
|
|
margin: 0 auto;
|
|
padding: 45px;
|
|
font-family:
|
|
Shantell Sans Normal,
|
|
Inter,
|
|
SF Pro,
|
|
sans-serif;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.markdown-body pre {
|
|
font-family:
|
|
Iosevka Pacman,
|
|
Jetbrains Mono,
|
|
SF Mono,
|
|
monospace;
|
|
}
|
|
|
|
@media (max-width: 767px) {
|
|
.markdown-body {
|
|
padding: 15px;
|
|
}
|
|
}
|
|
</style>
|
|
<body class="markdown-body">
|
|
<h2>
|
|
<a href="index.html"><code>~</code></a>
|
|
</h2>
|
|
<div class="markdown-heading">
|
|
<h1 class="heading-element">Backup my way</h1>
|
|
<a
|
|
id="user-content-backup-my-way"
|
|
class="anchor"
|
|
aria-label="Permalink: Backup my way"
|
|
href="#backup-my-way"
|
|
><span aria-hidden="true" class="octicon octicon-link"></span
|
|
></a>
|
|
</div>
|
|
<p>
|
|
First thing first, I want to list my own devices, which I have through the
|
|
years:
|
|
</p>
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Device</th>
|
|
<th>Status</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>Laptop Samsung NP300E4Z-S06VN</td>
|
|
<td>Giveaway</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Laptop Dell Inspiron 15 3567</td>
|
|
<td>Giveaway</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Laptop Acer Nitro AN515-45</td>
|
|
<td>Giveaway</td>
|
|
</tr>
|
|
<tr>
|
|
<td>LG G3 (D851)</td>
|
|
<td>Broken</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Xiaomi Redmi 6A</td>
|
|
<td>Broken</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Xiaomi Poco X3 NFC</td>
|
|
<td>Giveaway</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Samsung Galaxy S10+ 8GB/128GB (SM-G975F/DS)</td>
|
|
<td></td>
|
|
</tr>
|
|
<tr>
|
|
<td>Samsung Galaxy S22 Ultra 5G 12GB/256GB (SM-S908E/DS)</td>
|
|
<td>Broken</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Nothing Phone (2a) Plus</td>
|
|
<td></td>
|
|
</tr>
|
|
<tr>
|
|
<td>Kindle Paperwhite (10th Generation)</td>
|
|
<td></td>
|
|
</tr>
|
|
<tr>
|
|
<td>External HDD Seagate One Touch 2TB</td>
|
|
<td></td>
|
|
</tr>
|
|
<tr>
|
|
<td>External HDD WD My Passport 2TB (WDBYVG0020BBK)</td>
|
|
<td></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<p>Links:</p>
|
|
<ul>
|
|
<li>
|
|
<a
|
|
href="https://www.dell.com/support/home/en-vn/product-support/product/inspiron-15-3567-laptop/drivers"
|
|
rel="nofollow"
|
|
>https://www.dell.com/support/home/en-vn/product-support/product/inspiron-15-3567-laptop/drivers</a
|
|
>
|
|
</li>
|
|
<li>
|
|
<a
|
|
href="https://fwupd.org/lvfs/devices/com.dell.uefi1d4362ca.firmware"
|
|
rel="nofollow"
|
|
>https://fwupd.org/lvfs/devices/com.dell.uefi1d4362ca.firmware</a
|
|
>
|
|
</li>
|
|
<li>
|
|
<a
|
|
href="https://www.acer.com/ac/en/US/content/support-product/8841"
|
|
rel="nofollow"
|
|
>https://www.acer.com/ac/en/US/content/support-product/8841</a
|
|
>
|
|
</li>
|
|
<li>
|
|
<a href="https://www.gsmarena.com/lg_g3-6294.php" rel="nofollow"
|
|
>https://www.gsmarena.com/lg_g3-6294.php</a
|
|
>
|
|
</li>
|
|
<li>
|
|
<a
|
|
href="https://www.gsmarena.com/xiaomi_redmi_6a-9217.php"
|
|
rel="nofollow"
|
|
>https://www.gsmarena.com/xiaomi_redmi_6a-9217.php</a
|
|
>
|
|
</li>
|
|
<li>
|
|
<a
|
|
href="https://www.gsmarena.com/xiaomi_poco_x3_nfc-10415.php"
|
|
rel="nofollow"
|
|
>https://www.gsmarena.com/xiaomi_poco_x3_nfc-10415.php</a
|
|
>
|
|
</li>
|
|
<li>
|
|
<a
|
|
href="https://www.gsmarena.com/samsung_galaxy_s10+-9535.php"
|
|
rel="nofollow"
|
|
>https://www.gsmarena.com/samsung_galaxy_s10+-9535.php</a
|
|
>
|
|
</li>
|
|
<li>
|
|
<a
|
|
href="https://www.gsmarena.com/samsung_galaxy_s22_ultra_5g-11251.php"
|
|
rel="nofollow"
|
|
>https://www.gsmarena.com/samsung_galaxy_s22_ultra_5g-11251.php</a
|
|
>
|
|
</li>
|
|
<li>
|
|
<a
|
|
href="https://www.gsmarena.com/nothing_phone_(2a)_plus-13243.php"
|
|
rel="nofollow"
|
|
>https://www.gsmarena.com/nothing_phone_(2a)_plus-13243.php</a
|
|
>
|
|
</li>
|
|
<li>
|
|
<a
|
|
href="https://s3.amazonaws.com/firmwarereleasenotes/update_kindle_all_new_paperwhite_v2/ATVPDKIKX0DER/en_US.html"
|
|
rel="nofollow"
|
|
>https://s3.amazonaws.com/firmwarereleasenotes/update_kindle_all_new_paperwhite_v2/ATVPDKIKX0DER/en_US.html</a
|
|
>
|
|
</li>
|
|
<li>
|
|
<a
|
|
href="https://www.westerndigital.com/products/portable-drives/wd-my-passport-usb-3-0-hdd?sku=WDBYVG0020BBK-WESN"
|
|
rel="nofollow"
|
|
>https://www.westerndigital.com/products/portable-drives/wd-my-passport-usb-3-0-hdd?sku=WDBYVG0020BBK-WESN</a
|
|
>
|
|
</li>
|
|
</ul>
|
|
<p>Apps/Services I use daily:</p>
|
|
<ul>
|
|
<li>
|
|
<a href="https://bitwarden.com/" rel="nofollow">Bitwarden</a>: password
|
|
manager
|
|
</li>
|
|
<li>
|
|
<a href="https://getaegis.app/" rel="nofollow">Aegis Authenticator</a>:
|
|
2FA manager
|
|
</li>
|
|
<li>
|
|
<a href="https://rclone.org/" rel="nofollow">Rclone</a>: sync data to
|
|
cloud
|
|
</li>
|
|
</ul>
|
|
<p>
|
|
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.
|
|
</p>
|
|
<p>
|
|
There are 2 main sections which I want to share, the first is
|
|
<strong>How to backup</strong>, the second is
|
|
<strong>Recovery strategy</strong>.
|
|
</p>
|
|
<div class="markdown-heading">
|
|
<h2 class="heading-element">How to backup</h2>
|
|
<a
|
|
id="user-content-how-to-backup"
|
|
class="anchor"
|
|
aria-label="Permalink: How to backup"
|
|
href="#how-to-backup"
|
|
><span aria-hidden="true" class="octicon octicon-link"></span
|
|
></a>
|
|
</div>
|
|
<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
|
|
<a href="https://github.com/haunt98/dotfiles">dotfiles tool</a> 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
|
|
<a
|
|
href="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
|
|
<a
|
|
href="https://github.com/haunt98/posts-go/blob/main/posts/2022-12-25-archlinux.md"
|
|
>guide</a
|
|
>
|
|
to quickly capture what I need to do.
|
|
</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). 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:
|
|
</p>
|
|
<div class="highlight highlight-source-shell">
|
|
<pre><span class="pl-c"><span class="pl-c">#</span> Sync from local to remote</span>
|
|
<span class="pl-c"><span class="pl-c">#</span> remote can be gdrive, 1drive, ..., anything you previously config with rclone</span>
|
|
rclone sync MyBooks remote:MyBooks -P --exclude .DS_Store
|
|
|
|
<span class="pl-c"><span class="pl-c">#</span> Sync from remote to local</span>
|
|
rclone sync remote:MyBooks MyBooks -P --exclude .DS_Store</pre>
|
|
</div>
|
|
<p>
|
|
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.
|
|
</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 (encrypted or not), 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 Bitwardent/Aegis, I also can export the data (must always be
|
|
encrypted), then:
|
|
</p>
|
|
<ul>
|
|
<li>Sync to Google Drive</li>
|
|
<li>Store locally in my laptop</li>
|
|
<li>Don't store locally in phone (can not keep track easily)</li>
|
|
</ul>
|
|
<div class="markdown-heading">
|
|
<h2 class="heading-element">Recovery strategy</h2>
|
|
<a
|
|
id="user-content-recovery-strategy"
|
|
class="anchor"
|
|
aria-label="Permalink: Recovery strategy"
|
|
href="#recovery-strategy"
|
|
><span aria-hidden="true" class="octicon octicon-link"></span
|
|
></a>
|
|
</div>
|
|
<p>
|
|
There are many strategies that I process to react as if something strange
|
|
is happening to my devices.
|
|
</p>
|
|
<ul>
|
|
<li>
|
|
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.
|
|
</li>
|
|
<li>
|
|
If I lost my phone, but not my laptops, I use the OTPs which are stored
|
|
locally in my laptops.
|
|
</li>
|
|
<li>
|
|
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 log in previously.
|
|
</li>
|
|
</ul>
|
|
<div class="markdown-heading">
|
|
<h2 class="heading-element">The end</h2>
|
|
<a
|
|
id="user-content-the-end"
|
|
class="anchor"
|
|
aria-label="Permalink: The end"
|
|
href="#the-end"
|
|
><span aria-hidden="true" class="octicon octicon-link"></span
|
|
></a>
|
|
</div>
|
|
<p>This guide will be updated regularly I promise.</p>
|
|
|
|
<div>
|
|
Feel free to ask me via
|
|
<a href="mailto:hauvipapro+posts@gmail.com">email</a> or
|
|
<a rel="me" href="https://hachyderm.io/@haunguyen">Mastodon</a>.
|
|
<br />Source code is available on
|
|
<a href="https://github.com/haunt98/posts-go">GitHub</a>
|
|
<a href="https://codeberg.org/yoshie/posts-go">Codeberg</a>
|
|
<a href="https://git.sr.ht/~youngyoshie/posts-go">sourcehut</a>
|
|
<a href="https://gitea.treehouse.systems/yoshie/posts-go">Treehouse</a>
|
|
<a href="https://gitlab.com/youngyoshie/posts-go">GitLab</a>
|
|
</div>
|
|
</body>
|
|
</html>
|