Name | Modified | Size | Downloads / Week |
---|---|---|---|
readme.txt | 2017-10-03 | 2.2 kB | |
backupscript.sh | 2017-10-03 | 5.4 kB | |
Totals: 2 Items | 7.6 kB | 0 |
Documentation for backupscript This backupscript is a linux shell script that makes a backup of the Nextcloud/Owncloud user data and MariaDB/MySQL databases. The backups are stored locally and if you wish encrypted in the cloud. If you want to store your backups in the cloud you must have installed and configured davfs2. The following directory scructure is assumed for the backups: /backup/cloud ==> cloud backup /backup/lokaal ==> local backup /backup/lokaal/bestanden/dag ==> daily backup of Nextcloud/Owncloud data /backup/lokaal bestanden/week ==> weekly backup of Nextcloud/Owncloud data /backup/lokaal/ bestanden/maand ==> montly backup of Nextcloud/Owncloud data /backup/lokaal/ bestanden/jaar ==> yearly backup of Nextcloud/Owncloud data /backup/lokaal/databases/dag ==> daily backup of MariaDB/MySQL databases /backup/lokaal/databases/week ==> weekly backup of MariaDB/MySQL databases /backup/lokaal/databases/maand ==> monthly backup of MariaDB/MySQL databases /backup/lokaal/databases/jaar ==> yearly backup of MariaDB/MySQL databases If you want to store your backup in the cloud you first have to mount your webdav directory in the directory /backup/cloud. Then you can make the following structure: /backup/cloud/bestanden/dag ==> daily backup of Nextcloud/Owncloud data /backup/cloud/ bestanden/week ==> weekly backup of Nextcloud/Owncloud data /backup/cloud/ bestanden/maand ==> montly backup of Nextcloud/Owncloud data /backup/cloud/ bestanden/jaar ==> yearly backup of Nextcloud/Owncloud data /backup/cloud/databases/dag ==> daily backup of MariaDB/MySQL databases /backup/cloud/databases/week ==> weekly backup of MariaDB/MySQL databases /backup/cloud/databases/maand ==> monthly backup of MariaDB/MySQL databases /backup/cloud/databases/jaar ==> yearly backup of MariaDB/MySQL databases In case of cloud backup you also have to enable lines 23, 142, 143, 144, 145, 146 and 149 of the backup script. Don't forget to configure davfs2. You can schedule this backup script for example in systemd to run daily. A full description in dutch of the backup script you can read in the dutch Linux Magazine number 4 and 6.