27.11.2019 · In order to backup the database, issue the command: sudo mysqldump --single-transaction -h SERVER -u USER -p nextcloud > nextclouddb-backup_`date +"%Y%m%d"`.bak Where SERVER is the location of the...
19.10.2018 · Periodic backups This one is the most basic one. Backup our Nextcloud files and database at regular intervals, in case our system breaks or our database becomes corrupted. As we add more and more Gigabytes of data, this can take really long and take up a lot of space.
Backup folders Simply copy your config, data and theme folders (or even your whole Nextcloud install and data folder) to a place outside of your Nextcloud environment. You could use this command: rsync -Aavx nextcloud/ nextcloud-dirbkp_`date +"%Y%m%d"`/ Backup database Warning Before restoring a backup see Restoring backup MySQL/MariaDB
To backup an Nextcloud installation there are four main things you need to retain: The config folder The data folder The database The theme folder Backup Folders Simply copy your config, data and theme folders (or even your whole Nextcloud install and data folder) to a place outside of your Nextcloud environment. 1.
24.07.2018 · To create a backup of a Nextcloud sync folder, go to any Linux PC that uses the sync server, and open up a terminal. In the terminal, use the Tar command to create an archive of the ~/Nextcloud folder. Be sure to replace “username” in the command below with your username. tar -zcvpf nextcloud-local-backup-username.tar.gz ~/Nexcloud
14.01.2020 · sudo mysql -h localhost -u root -p -e "CREATE DATABASE nextcloud" Next, restore the backup to the newly created database with the command: sudo mysql -h localhost -u USER …
1. Copy the data directory (if outside of the nextcloud directory): · 2. Copy the entire Nexcloud install, which includes the required config and theme folders:
10.08.2020 · Restore the database. Before restoring a backup you need to make sure to delete all existing database tables. ... $ mysql -h localhost -u root -p -e "DROP DATABASE nextcloud" $ mysql -h localhost -u root -p -e "CREATE DATABASE nextcloud" Then restore from your backup: $ mysql -h [server] -u [username] -p ...
To backup a Nextcloud installation there are four main things you need to retain: The config folder. The data folder. The theme folder. The database ...
If you are using NextCloudPi, you have two options for your remote data backups nc-rsync nc-snapshot - even better, if your drive is BTRFS This is only for the data. nc-backup is for the cloud itself (calendars, users, contacts...)