From 1cf014f0879c432fd5bafdb9d1682d137ab30178 Mon Sep 17 00:00:00 2001 From: Bart Moyaers Date: Sun, 22 Dec 2019 18:50:40 +0100 Subject: [PATCH] add local settings --- NextcloudBackup.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/NextcloudBackup.sh b/NextcloudBackup.sh index 6781eaf..5077b1c 100644 --- a/NextcloudBackup.sh +++ b/NextcloudBackup.sh @@ -23,7 +23,7 @@ backupMainDir=$1 if [ -z "$backupMainDir" ]; then # TODO: The directory where you store the Nextcloud backups (when not specified by args) - backupMainDir='/media/hdd/nextcloud_backup' + backupMainDir='/mnt/nextcloud_backup' fi echo "Backup directory: $backupMainDir" @@ -38,32 +38,32 @@ nextcloudFileDir='/var/www/nextcloud' # TODO: The directory of your Nextcloud data directory (outside the Nextcloud file directory) # If your data directory is located under Nextcloud's file directory (somewhere in the web root), the data directory should not be a separate part of the backup -nextcloudDataDir='/var/nextcloud_data' +nextcloudDataDir='/mnt/dietpi_userdata/nextcloud_data' # TODO: The directory of your Nextcloud's local external storage. # Uncomment if you use local external storage. #nextcloudLocalExternalDataDir='/var/nextcloud_external_data' # TODO: The service name of the web server. Used to start/stop web server (e.g. 'systemctl start ') -webserverServiceName='nginx' +webserverServiceName='lighttpd' # TODO: Your web server user webserverUser='www-data' # TODO: The name of the database system (ome of: mysql, mariadb, postgresql) -databaseSystem='mariadb' +databaseSystem='mysql' # TODO: Your Nextcloud database name -nextcloudDatabase='nextcloud_db' +nextcloudDatabase='nextcloud' # TODO: Your Nextcloud database user -dbUser='nextcloud_db_user' +dbUser='oc_admin' # TODO: The password of the Nextcloud database user -dbPassword='mYpAsSw0rd' +dbPassword='O1sQtsof2aJhua7/KFjDCb330Dwgy/' # TODO: The maximum number of backups to keep (when set to 0, all backups are kept) -maxNrOfBackups=0 +maxNrOfBackups=1 # File names for backup files # If you prefer other file names, you'll also have to change the NextcloudRestore.sh script.