{"id":23201,"date":"2020-06-22T16:15:27","date_gmt":"2020-06-22T10:45:27","guid":{"rendered":"https:\/\/www.the-next-tech.com\/?p=23201"},"modified":"2021-01-06T13:13:51","modified_gmt":"2021-01-06T07:43:51","slug":"how-to-back-up-your-linux-computer-to-a-synology-nas","status":"publish","type":"post","link":"https:\/\/www.the-next-tech.com\/review\/how-to-back-up-your-linux-computer-to-a-synology-nas\/","title":{"rendered":"How To Back Up Your Linux Computer to a Synology NAS"},"content":{"rendered":"<p class=\"graf graf--p\">If you&#8217;re also the proud owner of a Linux desktop which you have extensively customized since installation, then you&#8217;ve probably given a thought to backup and data recovery.<\/p>\n<p>Thankfully, when it comes to backups, there are plenty of good options out there for Linux these days.<\/p>\n<p>These range from the powerful and versatile rsync command line interface (CLI) to <a href=\"https:\/\/github.com\/teejee2008\/timeshift\" target=\"_blank\" rel=\"noopener noreferrer\">Timeshift: an\u00a0<\/a>excellent tool for creating system snapshots for rolling back to a previous point in time that offers many of the same features that Time Machine (MacOS) and System Restore (Windows) do.<\/p>\n<p>While <a href=\"https:\/\/github.com\/danielrosehilljlm\/Master_Backup_Strategy\" target=\"_blank\" rel=\"noopener noreferrer\">my own Linux backup strategy<\/a> includes both Timeshift snapshots and bare metal Clonzilla backups my approach to onsite 3-2-1 compliance \u2014 which requires that both backup copies be on different storage media \u2014 has for years simply consisted of adding more internal drives to my desktop.<\/p>\n<p><img loading=\"lazy\" class=\"aligncenter wp-image-23206 size-full\" src=\"https:\/\/s3.amazonaws.com\/static.the-next-tech.com\/wp-content\/uploads\/2020\/06\/19155257\/0_IyM1TxLL2HAp1KZZ.png\" alt=\"\" width=\"1000\" height=\"509\" srcset=\"https:\/\/s3.amazonaws.com\/static.the-next-tech.com\/wp-content\/uploads\/2020\/06\/19155257\/0_IyM1TxLL2HAp1KZZ.png 1000w, https:\/\/s3.amazonaws.com\/static.the-next-tech.com\/wp-content\/uploads\/2020\/06\/19155257\/0_IyM1TxLL2HAp1KZZ-300x153.png 300w, https:\/\/s3.amazonaws.com\/static.the-next-tech.com\/wp-content\/uploads\/2020\/06\/19155257\/0_IyM1TxLL2HAp1KZZ-768x391.png 768w, https:\/\/s3.amazonaws.com\/static.the-next-tech.com\/wp-content\/uploads\/2020\/06\/19155257\/0_IyM1TxLL2HAp1KZZ-20x9.png 20w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" \/><\/p>\n<p>This is &#8230;. not ideal.<\/p>\n<p>Backing up to a\u00a0local server or network attached storage (NAS) confers several advantages over taking up backups on the host machine. For one, the 3-2-1 strategy also calls for keeping a backup copy offsite.<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/s3.amazonaws.com\/static.the-next-tech.com\/wp-content\/uploads\/2020\/06\/19155252\/WhatsApp-Image-2020-06-21-at-20.29.56.jpeg\"><img loading=\"lazy\" class=\"aligncenter wp-image-23208 \" src=\"https:\/\/s3.amazonaws.com\/static.the-next-tech.com\/wp-content\/uploads\/2020\/06\/19155252\/WhatsApp-Image-2020-06-21-at-20.29.56.jpeg\" alt=\"\" width=\"392\" height=\"523\" srcset=\"https:\/\/s3.amazonaws.com\/static.the-next-tech.com\/wp-content\/uploads\/2020\/06\/19155252\/WhatsApp-Image-2020-06-21-at-20.29.56.jpeg 1200w, https:\/\/s3.amazonaws.com\/static.the-next-tech.com\/wp-content\/uploads\/2020\/06\/19155252\/WhatsApp-Image-2020-06-21-at-20.29.56-225x300.jpeg 225w, https:\/\/s3.amazonaws.com\/static.the-next-tech.com\/wp-content\/uploads\/2020\/06\/19155252\/WhatsApp-Image-2020-06-21-at-20.29.56-768x1024.jpeg 768w, https:\/\/s3.amazonaws.com\/static.the-next-tech.com\/wp-content\/uploads\/2020\/06\/19155252\/WhatsApp-Image-2020-06-21-at-20.29.56-1152x1536.jpeg 1152w\" sizes=\"(max-width: 392px) 100vw, 392px\" \/><\/a><\/p>\n<p>And unless you&#8217;re lucky enough to have business-grade home internet (in which case I am truly jealous), pushing up backup data to the cloud \u2014 particularly the first time you do it\u2014 can take days, weeks, or, excruciatingly, even months.<\/p>\n<p>As I tend to allow my desktop some shut-eye when I do, my previous approach (yes, really) consisted of attaching a Post-It to the front of my computer warning me not to turn off the device until the backup had finished running.<\/p>\n<p>Not ideal \u2014 but <strong>by using a backup server or NAS you can keep those jobs running effortlessly.<\/strong><br \/>\n<span class=\"seethis_lik\"><span>Also read:<\/span> <a href=\"https:\/\/www.the-next-tech.com\/mobile-apps\/how-to-monetize-youtube-channel-without-showing-your-face\/\">How To Monetize YouTube Channel Without Showing Your Face? (2025 Guide)<\/a><\/span>\n<p><strong>Secondly, using an NAS makes it really easy to set up Redundant Array of Independent Disks (RAID)<\/strong> \u2014 so, depending on the level you use, you don&#8217;t need to worry about disk failure on your onsite constituting an unforeseen threat to your backup strategy.<\/p>\n<p>Just to be clear: RAID isn&#8217;t backup (it&#8217;s redundancy). But having your onsite backups on a RAID-enabled storage makes that onsite backup even safer.<\/p>\n<p>Finally, consider the fact that Synology&#8217;s NASs run their own operating system, DiskStation Manager (DSM), which features a great cloud sync engine.<\/p>\n<p>This makes it simplistic to push the backups your store on the NAS up to the cloud without having to get your hands dirty with things like cron scripting and automation.<\/p>\n<p>All around, I would argue that backing up to an NAS rather than a local drive or plug-in SSD is a win-win.<\/p>\n<p><img loading=\"lazy\" class=\"size-full wp-image-23216 aligncenter\" src=\"https:\/\/s3.amazonaws.com\/static.the-next-tech.com\/wp-content\/uploads\/2020\/06\/19155248\/1_l1C9bjeqgXrHwBtvLTLEkg.png\" alt=\"\" width=\"776\" height=\"638\" srcset=\"https:\/\/s3.amazonaws.com\/static.the-next-tech.com\/wp-content\/uploads\/2020\/06\/19155248\/1_l1C9bjeqgXrHwBtvLTLEkg.png 776w, https:\/\/s3.amazonaws.com\/static.the-next-tech.com\/wp-content\/uploads\/2020\/06\/19155248\/1_l1C9bjeqgXrHwBtvLTLEkg-300x247.png 300w, https:\/\/s3.amazonaws.com\/static.the-next-tech.com\/wp-content\/uploads\/2020\/06\/19155248\/1_l1C9bjeqgXrHwBtvLTLEkg-768x631.png 768w\" sizes=\"(max-width: 776px) 100vw, 776px\" \/><\/p>\n<p>Do I have you convinced?<\/p>\n<p>If so, and without further a-do, here are the tools I managed to get running in order to replicate the previous functionality I had to back up my Linux Ubuntu 20.04 LTS desktop.<\/p>\n<h3 class=\"graf graf--h3\">1. Grsync \/ Cloudberry for incremental backups<\/h3>\n<p class=\"graf graf--p\">If you\u2019re a fan of the <a class=\"markup--anchor markup--p-anchor\" href=\"https:\/\/itsfoss.com\/backup-restore-linux-timeshift\/\" target=\"_blank\" rel=\"noopener noreferrer\" data-href=\"https:\/\/itsfoss.com\/backup-restore-linux-timeshift\/\" data->Timeshift GUI<\/a> like I am then you might be disappointed to learn that it does not support backing up to network devices as the target.<\/p>\n<p class=\"graf graf--p\">Thankfully, all hope is not lost.<\/p>\n<p class=\"graf graf--p\">You can simply use grsync or Cloudberry to sync full system backups to the NAS.<\/p>\n<p class=\"graf graf--p\">Note: I\u2019m using some artistic license to call these \u2018incremental backups\u2019. They\u2019re change-only syncs \u2014 but the end result, <a href=\"https:\/\/github.com\/pedroetb\/rsync-incremental-backup\" target=\"_blank\" rel=\"noopener noreferrer\">unless you dig a bit deeper into the available parameters<\/a>, are <em class=\"markup--em markup--p-em\">full <\/em>backups on the destination. (Incremental backups mean something quite specific even though sometimes <em>any <\/em>backups taken over rsync are described that way.)<\/p>\n<p class=\"graf graf--p\">In terms of the tools available to make : Grsync is a pretty bare-bones frontend to rsync. MSP360\u2122 (CloudBerry) Backup for Ubuntu lets you take things a bit further by giving you the ability to create backup plans and have them run on a schedule.<\/p>\n<p class=\"graf graf--p\">Finally, you can use Cloud Sync to create a local to remote job in order to sync those system backups up to the cloud \/ to an offsite repository.<\/p>\n<p class=\"graf graf--p\">Setting up grsync between my Linux desktop and the NAS was quite straightforward although the progress does not support full-fledged backup plans and scheduling.<\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-23219\" src=\"https:\/\/s3.amazonaws.com\/static.the-next-tech.com\/wp-content\/uploads\/2020\/06\/19155243\/2020-06-21_20-46.png\" alt=\"\" width=\"1916\" height=\"818\" srcset=\"https:\/\/s3.amazonaws.com\/static.the-next-tech.com\/wp-content\/uploads\/2020\/06\/19155243\/2020-06-21_20-46.png 1916w, https:\/\/s3.amazonaws.com\/static.the-next-tech.com\/wp-content\/uploads\/2020\/06\/19155243\/2020-06-21_20-46-300x128.png 300w, https:\/\/s3.amazonaws.com\/static.the-next-tech.com\/wp-content\/uploads\/2020\/06\/19155243\/2020-06-21_20-46-1024x437.png 1024w, https:\/\/s3.amazonaws.com\/static.the-next-tech.com\/wp-content\/uploads\/2020\/06\/19155243\/2020-06-21_20-46-768x328.png 768w, https:\/\/s3.amazonaws.com\/static.the-next-tech.com\/wp-content\/uploads\/2020\/06\/19155243\/2020-06-21_20-46-1536x656.png 1536w, https:\/\/s3.amazonaws.com\/static.the-next-tech.com\/wp-content\/uploads\/2020\/06\/19155243\/2020-06-21_20-46-20x8.png 20w, https:\/\/s3.amazonaws.com\/static.the-next-tech.com\/wp-content\/uploads\/2020\/06\/19155243\/2020-06-21_20-46-30x13.png 30w, https:\/\/s3.amazonaws.com\/static.the-next-tech.com\/wp-content\/uploads\/2020\/06\/19155243\/2020-06-21_20-46-80x34.png 80w\" sizes=\"(max-width: 1916px) 100vw, 1916px\" \/><\/p>\n<p>By contrast, using Cloudberry I was able to backup plans which I could set on schedule and run over the Local Area Network (LAN) directly onto the NAS.<\/p>\n<p>Setting this backup up was as simple as entering the NAS&#8217;s local IP address and creating a new SFTP destination with the NAS&#8217;s local IP.<\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-23220\" src=\"https:\/\/s3.amazonaws.com\/static.the-next-tech.com\/wp-content\/uploads\/2020\/06\/19155237\/2020-06-21_20-48.png\" alt=\"\" width=\"1666\" height=\"627\" srcset=\"https:\/\/s3.amazonaws.com\/static.the-next-tech.com\/wp-content\/uploads\/2020\/06\/19155237\/2020-06-21_20-48.png 1666w, https:\/\/s3.amazonaws.com\/static.the-next-tech.com\/wp-content\/uploads\/2020\/06\/19155237\/2020-06-21_20-48-300x113.png 300w, https:\/\/s3.amazonaws.com\/static.the-next-tech.com\/wp-content\/uploads\/2020\/06\/19155237\/2020-06-21_20-48-1024x385.png 1024w, https:\/\/s3.amazonaws.com\/static.the-next-tech.com\/wp-content\/uploads\/2020\/06\/19155237\/2020-06-21_20-48-768x289.png 768w, https:\/\/s3.amazonaws.com\/static.the-next-tech.com\/wp-content\/uploads\/2020\/06\/19155237\/2020-06-21_20-48-1536x578.png 1536w, https:\/\/s3.amazonaws.com\/static.the-next-tech.com\/wp-content\/uploads\/2020\/06\/19155237\/2020-06-21_20-48-20x8.png 20w\" sizes=\"(max-width: 1666px) 100vw, 1666px\" \/><\/p>\n<p>The one caveat to creating all these backups from any local host to the NAS is that the SSH server is not enabled by default in Disk Station Manager (DSM).<\/p>\n<p>In order to open up SSH, rsync, and FTP access I needed to manually enable these servers on the NAS. This is done in the &#8216;File Services&#8217; window:<\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-23221\" src=\"https:\/\/s3.amazonaws.com\/static.the-next-tech.com\/wp-content\/uploads\/2020\/06\/19155232\/2020-06-21_20-50.png\" alt=\"\" width=\"1245\" height=\"700\" srcset=\"https:\/\/s3.amazonaws.com\/static.the-next-tech.com\/wp-content\/uploads\/2020\/06\/19155232\/2020-06-21_20-50.png 1245w, https:\/\/s3.amazonaws.com\/static.the-next-tech.com\/wp-content\/uploads\/2020\/06\/19155232\/2020-06-21_20-50-300x169.png 300w, https:\/\/s3.amazonaws.com\/static.the-next-tech.com\/wp-content\/uploads\/2020\/06\/19155232\/2020-06-21_20-50-1024x576.png 1024w, https:\/\/s3.amazonaws.com\/static.the-next-tech.com\/wp-content\/uploads\/2020\/06\/19155232\/2020-06-21_20-50-768x432.png 768w\" sizes=\"(max-width: 1245px) 100vw, 1245px\" \/><\/p>\n<h3 class=\"graf graf--h3\">2. Disk imaging with Clonezilla<\/h3>\n<p class=\"graf graf--p\">In addition to taking more regular \u2018incremental\u2019 backups to various snapshots points for easy restore, I like to create harder \u2018bare metal\u2019 disk images too.<\/p>\n<p class=\"graf graf--p\">As mentioned, I typically use the excellent and very powerful Clonezilla tool to take these onto a separate SSD in my computer.<\/p>\n<p class=\"graf graf--p\">Replicating the process but backing up directly onto the NAS turned out to be extremely straightforward.<\/p>\n<p class=\"graf graf--p\">Firstly, as described above, I enabled SSH (and rsync for good measure) from the \u201cTerminal &amp; SNMP\u201d part of control panel in DSM.<\/p>\n<p class=\"graf graf--p\">Next, I created a separate shared volume just to house the Clonezilla disk images.<\/p>\n<p class=\"graf graf--p\">As I have been testing a few different backup methodologies I created a new shared volume for each one just to keep things well separated on the filesystem \u2014 and to allow me to create new users just for individual backup services if required.<\/p>\n<p><img loading=\"lazy\" class=\"size-full wp-image-23223 aligncenter\" src=\"https:\/\/s3.amazonaws.com\/static.the-next-tech.com\/wp-content\/uploads\/2020\/06\/19155223\/cloudberryvolume.png\" alt=\"\" width=\"1000\" height=\"402\" srcset=\"https:\/\/s3.amazonaws.com\/static.the-next-tech.com\/wp-content\/uploads\/2020\/06\/19155223\/cloudberryvolume.png 1000w, https:\/\/s3.amazonaws.com\/static.the-next-tech.com\/wp-content\/uploads\/2020\/06\/19155223\/cloudberryvolume-300x121.png 300w, https:\/\/s3.amazonaws.com\/static.the-next-tech.com\/wp-content\/uploads\/2020\/06\/19155223\/cloudberryvolume-768x309.png 768w, https:\/\/s3.amazonaws.com\/static.the-next-tech.com\/wp-content\/uploads\/2020\/06\/19155223\/cloudberryvolume-20x8.png 20w, https:\/\/s3.amazonaws.com\/static.the-next-tech.com\/wp-content\/uploads\/2020\/06\/19155223\/cloudberryvolume-30x13.png 30w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" \/><\/p>\n<p class=\"graf graf--p\">Next, I booted into Clonezilla in the usual way but of course opted for \u2018SSH server\u2019 as the backup destination rather than local device.<\/p>\n<p class=\"graf graf--p\">Some users prefer backing up onto the SAMBA server, which can also be enabled, but I had success just over SSHFS.<\/p>\n<p><img loading=\"lazy\" class=\"size-full wp-image-23224 aligncenter\" src=\"https:\/\/s3.amazonaws.com\/static.the-next-tech.com\/wp-content\/uploads\/2020\/06\/19155217\/2020-06-21_20-54.png\" alt=\"\" width=\"876\" height=\"344\" srcset=\"https:\/\/s3.amazonaws.com\/static.the-next-tech.com\/wp-content\/uploads\/2020\/06\/19155217\/2020-06-21_20-54.png 876w, https:\/\/s3.amazonaws.com\/static.the-next-tech.com\/wp-content\/uploads\/2020\/06\/19155217\/2020-06-21_20-54-300x118.png 300w, https:\/\/s3.amazonaws.com\/static.the-next-tech.com\/wp-content\/uploads\/2020\/06\/19155217\/2020-06-21_20-54-768x302.png 768w, https:\/\/s3.amazonaws.com\/static.the-next-tech.com\/wp-content\/uploads\/2020\/06\/19155217\/2020-06-21_20-54-20x8.png 20w, https:\/\/s3.amazonaws.com\/static.the-next-tech.com\/wp-content\/uploads\/2020\/06\/19155217\/2020-06-21_20-54-30x13.png 30w\" sizes=\"(max-width: 876px) 100vw, 876px\" \/><\/p>\n<p class=\"graf graf--p\">Finally, when the program asked where to mount as \/home\/partimag I replaced the default path with my new volume\u2019s path relative to the root of the NAS:<\/p>\n<p><img loading=\"lazy\" class=\"size-full wp-image-23225 aligncenter\" src=\"https:\/\/s3.amazonaws.com\/static.the-next-tech.com\/wp-content\/uploads\/2020\/06\/19155213\/partimage.png\" alt=\"\" width=\"1000\" height=\"442\" srcset=\"https:\/\/s3.amazonaws.com\/static.the-next-tech.com\/wp-content\/uploads\/2020\/06\/19155213\/partimage.png 1000w, https:\/\/s3.amazonaws.com\/static.the-next-tech.com\/wp-content\/uploads\/2020\/06\/19155213\/partimage-300x133.png 300w, https:\/\/s3.amazonaws.com\/static.the-next-tech.com\/wp-content\/uploads\/2020\/06\/19155213\/partimage-768x339.png 768w, https:\/\/s3.amazonaws.com\/static.the-next-tech.com\/wp-content\/uploads\/2020\/06\/19155213\/partimage-20x8.png 20w, https:\/\/s3.amazonaws.com\/static.the-next-tech.com\/wp-content\/uploads\/2020\/06\/19155213\/partimage-30x13.png 30w, https:\/\/s3.amazonaws.com\/static.the-next-tech.com\/wp-content\/uploads\/2020\/06\/19155213\/partimage-80x34.png 80w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" \/><\/p>\n<p class=\"graf graf--p\">In about the usual timeframe, the program then created a full disk image as normal on the NAS.<\/p>\n<span class=\"seethis_lik\"><span>Also read:<\/span> <a href=\"https:\/\/www.the-next-tech.com\/finance\/best-money-making-websites\/\">30 Best Money Making Websites, Top Rated Money Earning Websites (No Cash Deposit!)<\/a><\/span>\n<h3 class=\"graf graf--h3\">Take All Your Linux Desktop Host Backups Over LAN Onto Your NAS<\/h3>\n<p class=\"graf graf--p\">Performing backups onto an NAS makes a lot <a href=\"https:\/\/www.the-next-tech.com\/security\/top-6-linux-firewall-software-of-2019-for-protecting-your-linux-system-and-server\/\">more sense than doing it onto your Linux desktop machine itself<\/a>.<\/p>\n<p class=\"graf graf--p\">For one, like any server, it\u2019s designed to be kept running 24\/7\u200a\u2014\u200aso if you\u2019re pushing large backups like disk images offsite you won\u2019t need to keep your computer turned on while large amounts of data leave your network for the cloud.<\/p>\n<p class=\"graf graf--p\">No Post-It notes appended to your desktop required while the push runs for days or weeks. Just set the cloud sync up (whether manually or though a tool like Synology&#8217;s Cloud Sync) and let the server do all the heavy lifting.<\/p>\n<p class=\"graf graf--p\">A second advantage is that\u200a\u2014\u200ato not run afoul of the different storage media rule\u200a\u2014\u200ayou won\u2019t even need to worry about buying external SSDs or adding more internal drives just to house your backups.<\/p>\n<p class=\"graf graf--p\">By backing up everything on your Linux desktop to the SSD you\u2019re already putting it on different storage media.<\/p>\n<p>Synology&#8217;s NAS features a nice operating system (OS) called DSM that makes it even easier to configure running various servers on the device \u2014 and makes it easy to sync the onsite backups you can take onto it up to the cloud, thereby fulfilling an important part of the\u00a0 3-2-1 approach.<\/p>\n<p class=\"graf graf--p\">Follow the above tips to migrate your Linux desktop backups onto a local NAS device.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Taking your Linux backups onto a network attached storage (NAS) could save you time and make it easier to back up your onsites to the cloud.<\/p>\n","protected":false},"author":1133,"featured_media":23257,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[43],"tags":[2100,2103,1411,2102,2101,3265],"_links":{"self":[{"href":"https:\/\/www.the-next-tech.com\/rest\/wp\/v2\/posts\/23201"}],"collection":[{"href":"https:\/\/www.the-next-tech.com\/rest\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.the-next-tech.com\/rest\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.the-next-tech.com\/rest\/wp\/v2\/users\/1133"}],"replies":[{"embeddable":true,"href":"https:\/\/www.the-next-tech.com\/rest\/wp\/v2\/comments?post=23201"}],"version-history":[{"count":22,"href":"https:\/\/www.the-next-tech.com\/rest\/wp\/v2\/posts\/23201\/revisions"}],"predecessor-version":[{"id":23589,"href":"https:\/\/www.the-next-tech.com\/rest\/wp\/v2\/posts\/23201\/revisions\/23589"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.the-next-tech.com\/rest\/wp\/v2\/media\/23257"}],"wp:attachment":[{"href":"https:\/\/www.the-next-tech.com\/rest\/wp\/v2\/media?parent=23201"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.the-next-tech.com\/rest\/wp\/v2\/categories?post=23201"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.the-next-tech.com\/rest\/wp\/v2\/tags?post=23201"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}