File Sync and Remote Storage/Backup

picture of Nextcloud mobile and desktop apps

Overview

NOTE: This guide assumes you have set up Nextcloud as your file synchronization system.

Remote storage/backup is, arguably, essential, for anyone. Whether itā€™s your work data, or just photos from your daily life ā€“ you donā€™t want to suddenly loose all that data because of a hardware failure, or other technical issue.

Likewise, automatic and immediate synchronization of your data is also very useful. So, typically, these features are paired together.

Unfortunately, at the current time, there are no good open source solutions for file synchronization and remote storage/backup that make use of inexpensive object storage.1 (But if you know of one, let me know!) So instead of about $5 bucks for object storage on the order of 250 gigabytes, youā€™re going to probably have to spend about $15 bucks for block storage on the order of 150 gigabytes. Even so, open source block storage can still be on par with orĀ cheaperĀ than proprietary object storage solutions like Dropbox or Box, if your data storage needs are around 150 GB.

The other option to go cheaper is to host your own regular disk storage at home.

Configure External Storage

After adding block storage to your VPS2, you will also need to configure external storage support on Nextcloud.

  • Go to Settings > Administration/External storages in Nextcloud.
  • Enter ā€œ/ā€ for your ā€œFolder nameā€, if you want your block storage to store all of
    your files.
  • Click the three-dot menu on the right and check-mark ā€œenable sharingā€.

Install the Nextcloud Desktop Synchronization Client

Straight forward installation for all major platforms (via the link above).

Install and Set Up Local Backups

While not necessarily essential, I highly recommend scheduling daily incremental backups for your Nextcloud folder. Without local backups, it is possible for your remote files to be encrypted by a ransomware attacker and syncā€™d to your desktop before you have a chance to notice. On Linux, I use DĆ©jĆ  Dup3Back In Time, but, unfortunately, Iā€™m not currently aware of any user-friendly open source backup systems for Microsoft or Apple products. (If someone is aware of them, please let me know!)

  1. Iā€™ve looked at Nextcloud, Pydio and Seafile. Nextcloud was unusable due to file synchronization defects, Pydio lacked sufficient documentation for a Docker solution and I gave up after a day of trying, and Seafileā€™s object storage back-end is not available for their community edition. Also worth noting ā€“ when an object storage solution becomes a part of this guide, it will most likely notĀ use Digital Oceanā€™s ā€œSpacesā€ product, as they seem to have strict and opaque rate throttling which will make transferring any large file storage system you currently have impossible. UPDATE 5/16/21: tried Pydio again ā€“ got a lot farther, but their Android solution is broken, which is a show stopper for me.
  2. On Digital Ocean, you can find instructions under the ā€œMoreā€ menu for your block storage on the https://cloud.digitalocean.com/volumes page.
  3. Unfortunately, I canā€™t recommend DĆ©jĆ  Dup anymore, since its auto-deletion on full disk doesnā€™t seem to work and thereā€™s no way to easily specify a backup retention period shorter than 6 months, so it will likely fill up your available disk space if youā€™re backing up a reasonable amount of data (e.g. ~100GB)

Leave a Reply

Your email address will not be published. Required fields are marked *