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!)
- 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.
- On Digital Ocean, you can find instructions under the āMoreā menu for your block storage on the https://cloud.digitalocean.com/volumes page.
- 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)