stub of cloud restore script and example of a cloud backup configuration.

This commit is contained in:
swg
2023-11-29 18:35:36 +01:00
parent 7c270584de
commit 2096b0434a
2 changed files with 144 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
#!/bin/bash
# Path to nextclouds data folder
CONFIG_NC_DATA="/srv/nextcloud-data"
# Path to the web root of the nextcloud
CONFIG_NC_BASE="/var/www/nextcloud"
# Folder for the log file - relative to nextcloud data folder!
CONFIG_NC_LOGPATH="admin/files/System/"
# Where to find the file with folders to exclude from backup
CONFIG_EXCLUDE=/home/cloudbackup/.config/cloud_backup.exclude
# Host of the database
CONFIG_NC_DB_SERVER=localhost
# Name of the nextcloud database
CONFIG_NC_DB_NAME=nextclouddb
# User for the nextcloud datbase
CONFIG_NC_DB_USER=nextclouduser
# Folders to backup with rsync
BACKUP_SOURCES=(/srv/nextcloud-data /var/www/nextcloud)
# Target server for backup
TOSSH=
# port to use for ssh/rsync
SSHPORT=10110
# User for the backup server
SSHUSER="cloudbackup"
# target folder on the backup server
BACKUP_TARGET="/srv/dev-disk-by-label-mirny/Backup/nubecula-minor/nextcloud"