I’ve just installed ownCloud and I’d like to make backups, to prevent data loss. Unfortunately I’m a bit confused on what the best way is to backup the database.
On this ownCloud page, it says to use
rsync to backup the Docker volume of the database container:
But then on this ownCloud page at step 3., it says I should run
mysqldump inside the database container in order to create a backup of the database:
Should I use the latter, since it is more recent? But then I’m also not sure on what steps to take to restore the database, as that is not specified there. I found this page
https://doc.owncloud.com/server/next/admin_manual/maintenance/backup_and_restore/restore.html#restore-the-database, but there the file ends in .bak, instead of in .sql, so I’m not sure if the instructions apply. It really seems like I’m reading three different stories.
Thanks for any help!
Edit: Sorry for formatting the links like this, it seems that new users are not allowed to add links to their posts