Backup with BorgBackup - CloudPanel, Nextcloud
Find a file
2022-06-03 06:22:26 +00:00
backup.sh bump to 1.3.0 2022-03-03 09:10:43 +01:00
backupcpv2.sh add CloudPanel v2 Support 2022-06-03 06:22:26 +00:00
LICENSE.md Create LICENSE.md 2021-10-13 07:52:44 +02:00
README.md bump to 1.2.3 2022-01-16 12:29:15 +01:00

Backup-CloudPanel-Nextcloud

BorgBackup Script - CloudPanel, Nextcloud

Commits GitHub release GitHub license GitHub file size in bytes

foxly.de

This script is designed for CloudPanel. It backs up all data located in /home/cloudpanel to a Borgbackup repository. Furthermore, before the actual backup process, all databases that are specified are backed up and stored in /home/cloudpanel/backup. In the script itself you have to define which database is used, e.g. MySQL/MariaDB or PostgreSQL. Adjustments that need to be changed in the script are marked with TODO. In the script a Nextcloud instance is also considered, should this function not be used, it can simply be commented out.

Of course, this script can be adapted to other systems.


Usage

In order to back up data, a repository must first be created. This can be created locally or on a remote computer via ssh.

local:

  borg init --encryption=repokey /path/to/backup

remote:

  borg init --encryption=repokey user@server.ip.or.domain:/path/to/backup

Features

  • MariaDB/MySQL support
  • PostgreSQL support
  • Nextcloud support

Operating System

  • Debian 10/11 (Buster)
  • Raspbian 10/11 (Buster)