gas85
June 27, 2019, 7:49am
2
I believe you can just use periodically cron jobs with rsync (good for local, or remote drives) or restic (good for cloud solutions), check the forum, it was already discussed many times:
Not really a Issue, but since i am relying on nextcloud at home for all my storage and files, DITCHED google cloud & dropbox, came from owncloud too ! What is everyone doing to backup their next cloud or replicating it for a disaster ? I currently have min in a vm on my Hyperv box with not one single issue, but would be nice to have a off site backup or all the users / data replicated to another box in-case there was a issue…
Thought suggestions ?
Hello,
I have the following setup:
Ubuntu 18.04 Server (older hardware, 2GB RAM), small SSD for the system
4TB HDD for Nextcloud data (currently about 1,2 TB used)
5TB external HDD (2,5 inch, USB 3) for Backup, LUKS encrypted
Before automating anything I tried to do a manual Backup (as suggested here, in german):
cd /var/www/html/nextcloud
sudo -u www-data php occ maintenance:mode --on
sudo tar -cpzf /mnt/NC_Backup_scripts_`date +"%Y%m%d"`.tar.gz -C /var/www/html/nextcloud .
mysqldump -…
You can use TAR to put backup platform independent in archive:
tar -cvpzf backup.tar.gz --exclude=FolderToExclude --one-file-system folderToBackup
Or use RSYNC as it listed above with same key --exclude=FolderToExclude.
Or you can even combine and do rsync into archive (with remote authentication via SSH Key):
Or use restic:
Nextcloud is creating a unique file number on upload. If you are on a different setup, you get new unique ids, even if the change date and checksum are the same. And the client can’t detect if the files are identical (based on name, size and checksum). Only way is to really migrate the setup with the database and everything. If your new provider does managed Nextcloud hosting, they should be able to do that?