nextcloud all in one for easy backups
Looking for an installation I could easily backup, restore or replicate on a fallback platform I found:
- nextcloud all-in-one has backup at Your fingertips, i.e. the AIO interface at yourdomain.tld:8080
- nextcloud all-in-one backup is transactional, i.e. it handles the entire state of your instance at some point of time.
BorgBase for redundant backups
For redundant backup I found borg backup recommended and BorgBase as a cloud provider.
In an upcoming version of AIO, remote backup to BorgBase might well be added to AIO. In the meantime am using the above mentioned solution.
On that I find worth mentioning that, in order to avoid ssh connection failures, I found use of borg mount in combination with rsync reliable:
Several time I pulled archives of up to 30GB from the cloud. I did that while replicating my nextcloud back and forth from home bare metal to hosted virtual machines while using and backing them up all time.
Installation on Ubuntu
On Ubuntu 24.04 it takes - besides borgbackup and borgmatic - fuse and python3-pyfuse to be installed to make borg mount work.
apt install borgbackup borgmatic libfuse-dev fuse pkg-config python3-pyfuse3
How to replicate Your instance from the cloud
# find Your archive
borg list
# create MOUNTPOINT directory & mount Your archive
borg mount $BORG_REPO::<ARCHIVE> <MOUNTPOINT>
# sync your backup location with your archive on BorgBase
rsync -aP <MOUNTPOINT> <YOURBACKUPLOCATION>
# remove the lock
rm <YOURBACKUPLOCATION>/borg/aio-lockfile
On first startup of Your target instance You choose not to enter Your domain but <YOURBACKUPLOCATION> and your password for that.
Et voila