Backup with BorgBackup - CloudPanel, Nextcloud
Go to file
Foxly IT 5dd42a70ba CPv1
CloudPanel v1 is obsolete and is no longer supported.
2024-04-27 09:30:27 +02:00
backupcpv2.sh Update backupcpv2.sh 2024-04-27 09:20:40 +02:00
LICENSE.md Create LICENSE.md 2021-10-13 07:52:44 +02:00
README.md CPv1 2024-04-27 09:30:27 +02: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 v2. It backs up all data located in /home/ to a BorgBackup repository. All databases that need to be backed up must be specified in the script. Adjustments that need to be changed in the script are marked with TODO. A Nextcloud instance is also considered in the script; if this function is not used, it can simply be commented out.

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

CloudPanel v1 is obsolete and is no longer supported.


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 11/12 (bookworm)