mirror of
https://github.com/davegallant/davegallant.github.io.git
synced 2025-08-14 12:20:19 +00:00
223 lines
14 KiB
HTML
223 lines
14 KiB
HTML
<!doctype html><html lang=en dir=auto><head>
|
|
<meta charset=utf-8>
|
|
<meta name=viewport content="width=device-width,initial-scale=1">
|
|
<meta name=description content>
|
|
<meta name=theme-color content="#8979b3">
|
|
<meta property="og:title" content="Backing Up Gmail With Synology • davegallant">
|
|
<meta property="og:description" content>
|
|
<meta property="og:url" content="/blog/2022/03/13/backing-up-gmail-with-synology/">
|
|
<meta property="og:site_name" content="davegallant">
|
|
<meta property="og:type" content="article"><meta property="article:section" content="post"><meta property="article:tag" content="degoogle"><meta property="article:tag" content="synology"><meta property="article:tag" content="gmail"><meta property="article:tag" content="backup"><meta property="article:tag" content="ransomware"><meta property="article:published_time" content="2022-03-13T18:49:10-04:00"><meta property="article:modified_time" content="2022-03-13T18:49:10-04:00"><meta name=twitter:card content="summary">
|
|
<meta name=generator content="Hugo 0.89.4">
|
|
<title>Backing Up Gmail With Synology • davegallant</title>
|
|
<link rel=canonical href=/blog/2022/03/13/backing-up-gmail-with-synology/>
|
|
<link rel=icon href=/favicon.ico>
|
|
<link rel=stylesheet href=/assets/css/main.ab98e12b.css><link rel=stylesheet href=/css/custom.css><style>:root{--color-accent:#8979b3}</style>
|
|
<script type=application/javascript>var doNotTrack=!1;doNotTrack||(window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)},ga.l=+new Date,ga('create','UA-98710982-2','auto'),ga('send','pageview'))</script>
|
|
<script async src=https://www.google-analytics.com/analytics.js></script>
|
|
</head>
|
|
<body class="page type-post has-sidebar">
|
|
<div class=site><div id=sidebar class=sidebar>
|
|
<a class=screen-reader-text href=#main-menu>Skip to Main Menu</a>
|
|
<div class=container><section class="widget widget-about sep-after">
|
|
<header>
|
|
<div class=logo>
|
|
<a href=/>
|
|
<img src=/images/logo.png>
|
|
</a>
|
|
</div>
|
|
<h2 class="title site-title">
|
|
<a href=/>
|
|
davegallant
|
|
</a>
|
|
</h2>
|
|
<div class=desc>
|
|
personal blog
|
|
</div>
|
|
</header>
|
|
</section>
|
|
<section class="widget widget-taxonomy_cloud sep-after">
|
|
<header>
|
|
<h4 class="title widget-title">Tags</h4>
|
|
</header>
|
|
<div class="container list-container">
|
|
<ul class="list taxonomy-cloud"><li>
|
|
<a href=/tags/adguard/ style=font-size:1em>adguard</a>
|
|
</li><li>
|
|
<a href=/tags/aws/ style=font-size:1em>aws</a>
|
|
</li><li>
|
|
<a href=/tags/aws-vault/ style=font-size:1em>aws-vault</a>
|
|
</li><li>
|
|
<a href=/tags/backup/ style=font-size:1em>backup</a>
|
|
</li><li>
|
|
<a href=/tags/containers/ style=font-size:1em>containers</a>
|
|
</li><li>
|
|
<a href=/tags/degoogle/ style=font-size:1em>degoogle</a>
|
|
</li><li>
|
|
<a href=/tags/docker/ style=font-size:1em>docker</a>
|
|
</li><li>
|
|
<a href=/tags/dotfiles/ style=font-size:1em>dotfiles</a>
|
|
</li><li>
|
|
<a href=/tags/gmail/ style=font-size:1em>gmail</a>
|
|
</li><li>
|
|
<a href=/tags/grafana/ style=font-size:1em>grafana</a>
|
|
</li><li>
|
|
<a href=/tags/home-manager/ style=font-size:1em>home-manager</a>
|
|
</li><li>
|
|
<a href=/tags/homelab/ style=font-size:1em>homelab</a>
|
|
</li><li>
|
|
<a href=/tags/jellyfin/ style=font-size:1em>jellyfin</a>
|
|
</li><li>
|
|
<a href=/tags/k3s/ style=font-size:1em>k3s</a>
|
|
</li><li>
|
|
<a href=/tags/linux/ style=font-size:1em>linux</a>
|
|
</li><li>
|
|
<a href=/tags/lxc/ style=font-size:1em>lxc</a>
|
|
</li><li>
|
|
<a href=/tags/netdata/ style=font-size:1em>netdata</a>
|
|
</li><li>
|
|
<a href=/tags/nix/ style=font-size:1em>nix</a>
|
|
</li><li>
|
|
<a href=/tags/pihole/ style=font-size:1em>pihole</a>
|
|
</li><li>
|
|
<a href=/tags/plex/ style=font-size:1em>plex</a>
|
|
</li><li>
|
|
<a href=/tags/podman/ style=font-size:1em>podman</a>
|
|
</li><li>
|
|
<a href=/tags/proxmox/ style=font-size:1em>proxmox</a>
|
|
</li><li>
|
|
<a href=/tags/python/ style=font-size:2em>python</a>
|
|
</li><li>
|
|
<a href=/tags/ransomware/ style=font-size:1em>ransomware</a>
|
|
</li><li>
|
|
<a href=/tags/security/ style=font-size:1em>security</a>
|
|
</li><li>
|
|
<a href=/tags/synology/ style=font-size:1em>synology</a>
|
|
</li><li>
|
|
<a href=/tags/tailscale/ style=font-size:1em>tailscale</a>
|
|
</li><li>
|
|
<a href=/tags/virtualization/ style=font-size:1em>virtualization</a>
|
|
</li><li>
|
|
<a href=/tags/vpn/ style=font-size:1em>vpn</a>
|
|
</li></ul>
|
|
</div>
|
|
</section>
|
|
<section class="widget widget-social_menu sep-after"><nav aria-label="Social Menu">
|
|
<ul><li>
|
|
<a href=https://github.com/davegallant target=_blank rel="noopener me">
|
|
<span class=screen-reader-text>Open Github account in new tab</span><svg class="icon" xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" aria-hidden="true"><path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37.0 00-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44.0 0020 4.77 5.07 5.07.0 0019.91 1S18.73.65 16 2.48a13.38 13.38.0 00-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07.0 005 4.77 5.44 5.44.0 003.5 8.55c0 5.42 3.3 6.61 6.44 7A3.37 3.37.0 009 18.13V22"/></svg>
|
|
</a>
|
|
</li><li>
|
|
<a href=https://twitter.com/dave_gallant_ target=_blank rel="noopener me">
|
|
<span class=screen-reader-text>Open Twitter account in new tab</span><svg class="icon" xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" aria-hidden="true"><path d="M23 3a10.9 10.9.0 01-3.14 1.53 4.48 4.48.0 00-7.86 3v1A10.66 10.66.0 013 4s-4 9 5 13a11.64 11.64.0 01-7 2c9 5 20 0 20-11.5a4.5 4.5.0 00-.08-.83A7.72 7.72.0 0023 3z"/></svg>
|
|
</a>
|
|
</li><li>
|
|
<a href=mailto:davegallant@gmail.com target=_blank rel="noopener me">
|
|
<span class=screen-reader-text>Contact via Email</span><svg class="icon" xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" aria-hidden="true"><path d="M4 4h16c1.1.0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1.0-2-.9-2-2V6c0-1.1.9-2 2-2z"/><polyline points="22,6 12,13 2,6"/></svg>
|
|
</a>
|
|
</li><li>
|
|
<a href=https://linkedin.com/in/dave-gallant target=_blank rel="noopener me">
|
|
<span class=screen-reader-text>Open Linkedin account in new tab</span><svg class="icon" xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" aria-hidden="true"><path d="M16 8a6 6 0 016 6v7h-4v-7a2 2 0 00-2-2 2 2 0 00-2 2v7h-4v-7a6 6 0 016-6z"/><rect x="2" y="9" width="4" height="12"/><circle cx="4" cy="4" r="2"/></svg>
|
|
</a>
|
|
</li></ul>
|
|
</nav>
|
|
</section></div>
|
|
<div class=sidebar-overlay></div>
|
|
</div><div class=main><nav id=main-menu class="menu main-menu" aria-label="Main Menu">
|
|
<div class=container>
|
|
<a class=screen-reader-text href=#content>Skip to Content</a>
|
|
<button id=sidebar-toggler class=sidebar-toggler aria-controls=sidebar>
|
|
<span class=screen-reader-text>Toggle Sidebar</span>
|
|
<span class=open><svg class="icon" xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" aria-hidden="true"><line x1="3" y1="12" x2="21" y2="12"/><line x1="3" y1="6" x2="21" y2="6"/><line x1="3" y1="18" x2="21" y2="18"/></svg>
|
|
</span>
|
|
<span class=close><svg class="icon" xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" aria-hidden="true"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg>
|
|
</span>
|
|
</button>
|
|
<ul><li class=item>
|
|
<a href=/>Home</a>
|
|
</li><li class=item>
|
|
<a href=/about/>About</a>
|
|
</li><li class=item>
|
|
<a href=/index.xml>RSS</a>
|
|
</li></ul>
|
|
</div>
|
|
</nav><div class=header-widgets>
|
|
<div class=container></div>
|
|
</div>
|
|
<header id=header class="header site-header">
|
|
<div class="container sep-after">
|
|
</div>
|
|
</header>
|
|
<main id=content>
|
|
<article lang=en class=entry>
|
|
<header class="header entry-header">
|
|
<div class="container sep-after">
|
|
<div class=header-info>
|
|
<h1 class=title>Backing Up Gmail With Synology</h1>
|
|
</div>
|
|
<div class=entry-meta>
|
|
<span class=posted-on><svg class="icon" xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" aria-hidden="true"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"/><line x1="16" y1="2" x2="16" y2="6"/><line x1="8" y1="2" x2="8" y2="6"/><line x1="3" y1="10" x2="21" y2="10"/></svg>
|
|
<span class=screen-reader-text>Posted on </span>
|
|
<time class=entry-date datetime=2022-03-13T18:49:10-04:00>2022, Mar 13</time>
|
|
</span>
|
|
<span class=reading-time><svg class="icon" xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" aria-hidden="true"><circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 15 15"/></svg>
|
|
3 mins read
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
<div class="container entry-content">
|
|
<p>I’ve used gmail since the beta launched touting a whopping 1GB of storage. I thought this was a massive leap in email technology at the time. I was lucky enough to get an invite fairly quickly. Not suprisingly, I have many years of emails, attachments, and photos. I certainly do not want to lose the content of many of these emails. Despite the redundancy of the data that Google secures, I still feel better retaining a copy of this data on my own physical machines.</p>
|
|
<p>The thought of completely de-googling has crossed my mind on occassion. The convenience coupled with my admiration for their engineering has prevented me from doing so thus far. Though, I may end up doing so at some point in the future.</p>
|
|
<h2 id=synology-mailplus-server>Synology MailPlus Server</h2>
|
|
<p>Synology products are reasonably priced for what you get (essentially a cloud-in-a-box) and there is very little maintenance required. I’ve recently been in interested in constantly syncing and snapshotting my personal data. I’ve setup <a href=https://www.synology.com/en-ca/dsm/feature/cloud_sync>Synology’s Cloud Sync</a> and keep copies of most of my cloud data.</p>
|
|
<p>I’ve used tools such as <a href=http://www.gmvault.org>gmvault</a> with success in the past. Setting this up on a cron seems like a viable option as well. However, I don’t really need a lot of the features it offers and do not plan to restore this data to another account.</p>
|
|
<p>Synology’s MailPlus seems to be a good candidate for backing up this data. By enabling POP3 fetching, it’s possible to both retroactively and continually fetch these emails. If a disaster ever did occur, having these emails could be a life saver.</p>
|
|
<p>Installing MailPlus can be done from the Package Center:</p>
|
|
<p><img src=/images/backing-up-gmail-with-synology/install-mailplus-server.png alt=image></p>
|
|
<p>Next, I went into <strong>Synology MailPlus Server</strong> and on the left, clicked on <strong>Account</strong> and ensured my user was marked as active.</p>
|
|
<p>Afterwords, I followed <a href=https://kb.synology.com/en-in/DSM/tutorial/How_should_I_receive_external_email_messages_via_MailPlus>these instructions</a> in order to start backing up emails.</p>
|
|
<p>When entering the POP3 credentials, I created an <a href=https://myaccount.google.com/apppasswords>app password</a> solely for authenticating to POP3 from the Synology device. This is required because I have 2-Step verification enabled on my account. There doesn’t seem to be a more secure way to access POP3 at the moment. It does seem like app password access is limited in scope (when MFA is enabled). These app passwords can’t be used to login to the main Google account.</p>
|
|
<p>I made sure to set the <code>Fetch Range</code> to <code>All</code> in order to get all emails from the beginning of time.</p>
|
|
<p>After this, mail started coming in.</p>
|
|
<p><img src=/images/backing-up-gmail-with-synology/mail-plus-incoming-mail.png alt=image></p>
|
|
<p>Searching through emails also worked quite quickly. I’ll test the search again after the 19 years of emails finally finish syncing.</p>
|
|
<p><strong>UPDATE (2022-03-15)</strong>: The performance of search was still fast (a few seconds) after syncing ~50K emails, which is a relief if I ever did have to search for an email quickly.</p>
|
|
<h2 id=securing-synology>Securing Synology</h2>
|
|
<p>Since Synology devices are not hermetically sealed, it’s a good idea to secure them by <a href=https://kb.synology.com/en-us/DSM/tutorial/How_to_add_extra_security_to_your_Synology_NAS#x_anchor_id8>enabling MFA</a> to help prevent being the <a href=https://www.bleepingcomputer.com/news/security/qlocker-ransomware-returns-to-target-qnap-nas-devices-worldwide/>victim of ransomware</a>. It is also wise to backup your system settings and volumes to the cloud using a tool such as <a href=https://www.synology.com/en-ca/dsm/feature/hyper_backup>Hyper Backup</a>.
|
|
Encrypting your shared volumes is also a good idea, since sadly Synology <a href=https://community.synology.com/enu/forum/12/post/144665>does not support full disk encryption</a>.</p>
|
|
<h2 id=summary>Summary</h2>
|
|
<p>Having backups is essential for almost everything. Backing up your cloud data shouldn’t be any different. I certainly feel more at ease for having done this.</p>
|
|
</div>
|
|
<footer class=entry-footer>
|
|
<div class="container sep-before"><div class=tags><svg class="icon" xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" aria-hidden="true"><path d="M20.59 13.41l-7.17 7.17a2 2 0 01-2.83.0L2 12V2H12l8.59 8.59a2 2 0 010 2.82z"/><line x1="7" y1="7" x2="7" y2="7"/></svg>
|
|
<span class=screen-reader-text>Tags: </span><a class=tag href=/tags/degoogle/>degoogle</a>, <a class=tag href=/tags/synology/>synology</a>, <a class=tag href=/tags/gmail/>gmail</a>, <a class=tag href=/tags/backup/>backup</a>, <a class=tag href=/tags/ransomware/>ransomware</a></div>
|
|
</div>
|
|
</footer>
|
|
</article>
|
|
<nav class=entry-nav>
|
|
<div class=container><div class="prev-entry sep-before">
|
|
<a href=/blog/2021/11/14/running-k3s-in-lxc-on-proxmox/>
|
|
<span aria-hidden=true><svg class="icon" xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" aria-hidden="true"><line x1="20" y1="12" x2="4" y2="12"/><polyline points="10 18 4 12 10 6"/></svg>
|
|
Previous</span>
|
|
<span class=screen-reader-text>Previous post: </span>Running K3s in LXC on Proxmox</a>
|
|
</div></div>
|
|
</nav>
|
|
<section id=comments class=comments>
|
|
<div class="container sep-before">
|
|
<div class=comments-area><script src=https://utteranc.es/client.js repo=davegallant/davegallant.github.io issue-term=pathname theme=github-light crossorigin=anonymous async></script>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</main>
|
|
<footer id=footer class=footer>
|
|
<div class="container sep-before"><div class=copyright>
|
|
<p> © 2020-2022 Dave Gallant </p>
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
</div>
|
|
</div><script>window.__assets_js_src="/assets/js/"</script>
|
|
<script src=/assets/js/main.c3bcf2df.js></script>
|
|
</body>
|
|
</html> |