Backup just the nextcloud database?

What type of hardware are you using: VPS bought online
What YunoHost version are you running: 12.0.6
How are you able to access your server: The webadmin
SSH
Are you in a special context or did you perform specific tweaking on your YunoHost instance ?: nope

Describe your issue

I just need a backup of my nextcloud database. Nothing else. The server does not have enough space for a complete backup. I already rsync’ed the data dir to a new, larger VPS.

I wanna use a shell command to backup the database, but I need to know the variables as described by the nextcloud documentation here: Backup — Nextcloud latest Administration Manual latest documentation

It says to use a command like this:

‘mysqldump --single-transaction -h [server] -u [username] -p[password] [db_name] > nextcloud-sqlbkp_date +"%Y%m%d".bak’

but for that to work I’d need to know how my Yunohost Nextcloud MariaDB is organized. I couldn’t find that in the Yunohost documentation. Do you have any insight here?

Share relevant logs or error messages

no error messages relevant

Why not use ?

BACKUP_CORE_ONLY=1 yunohost backup create --apps nextcloud
1 Like

I would suggest mounting yunohost backup folder of the old vps on the yunohost backup folder of the new vps and make a backup

1 Like

thanks to both of you! That was very helpful!

I’ll try just backing up without data first and doing both operations manually, as it were. Though @jarod5001’s suggestion of mounting the old machine on the new one also sounds very smooth. :slight_smile: