2021-10-13 06:28:06 +00:00
< div align = center >
2021-10-13 06:29:35 +00:00
# Backup-CloudPanel-Nextcloud
2021-10-13 06:29:55 +00:00
#### BorgBackup Script - CloudPanel, Nextcloud
2021-07-12 11:10:54 +00:00
2021-10-13 05:55:08 +00:00
[![Commits ](https://img.shields.io/github/last-commit/foxly-it/Backup-CloudPanel-Nextcloud?style=flat-square )](https://github.com/foxly-it/Backup-CloudPanel-Nextcloud/commits/main) [![GitHub release ](https://img.shields.io/github/release/foxly-it/Backup-CloudPanel-Nextcloud?style=flat-square )](https://github.com/foxly-it/Backup-CloudPanel-Nextcloud/releases) [![GitHub license ](https://img.shields.io/github/license/foxly-it/Backup-CloudPanel-Nextcloud?style=flat-square&color=lightgray )](LICENSE.md) [![GitHub file size in bytes ](https://img.shields.io/github/size/foxly-it/Backup-CloudPanel-Nextcloud/backup.sh?style=flat-square )](https://github.com/foxly-it/Backup-CloudPanel-Nextcloud/blob/main/Backup-CloudPanel-Nextcloud.sh)
2021-10-13 06:27:43 +00:00
---
[![foxly.de ](https://foxly.de/media/232-png-bild-png/ )](https://foxly.de)
---
< / div >
2021-07-12 11:10:54 +00:00
2024-04-27 07:28:32 +00:00
This script is designed for [CloudPanel v2 ](CloudPanel.io ). 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.
2021-07-12 11:10:54 +00:00
2021-10-13 06:27:43 +00:00
Of course, this script can be adapted to other systems.
2021-07-12 11:10:54 +00:00
2024-04-27 07:30:27 +00:00
CloudPanel v1 is obsolete and is no longer supported.
2021-10-13 06:27:43 +00:00
---
2021-07-12 11:10:54 +00:00
## Usage
2021-10-13 06:27:43 +00:00
In order to back up data, a repository must first be created. This can be created locally or on a remote computer via ssh.
2021-07-12 11:10:54 +00:00
2021-10-13 06:27:43 +00:00
*local:*
2021-07-12 11:10:54 +00:00
```
borg init --encryption=repokey /path/to/backup
```
2021-10-13 06:29:35 +00:00
*remote:*
2021-10-13 06:27:43 +00:00
```
borg init --encryption=repokey user@server.ip.or.domain:/path/to/backup
```
2021-10-13 06:31:13 +00:00
2021-10-13 06:27:43 +00:00
---
2021-07-12 11:10:54 +00:00
2021-10-13 06:27:43 +00:00
## Features
2021-10-13 05:40:06 +00:00
2021-10-13 06:27:43 +00:00
* MariaDB/MySQL support
* Nextcloud support
---
### Operating System
#### Recommended
2024-04-27 07:28:32 +00:00
* Debian 11/12 (__bookworm__)