add local settings
This commit is contained in:
@@ -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,14 +38,14 @@ 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>')
|
||||
webserverServiceName='nginx'
|
||||
webserverServiceName='lighttpd'
|
||||
|
||||
# TODO: Your web server user
|
||||
webserverUser='www-data'
|
||||
@@ -54,16 +54,16 @@ webserverUser='www-data'
|
||||
databaseSystem='mariadb'
|
||||
|
||||
# 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.
|
||||
|
||||
@@ -24,7 +24,7 @@ backupMainDir=$2
|
||||
|
||||
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"
|
||||
@@ -36,14 +36,14 @@ 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 restored separately
|
||||
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>')
|
||||
webserverServiceName='nginx'
|
||||
webserverServiceName='lighttpd'
|
||||
|
||||
# TODO: Your web server user
|
||||
webserverUser='www-data'
|
||||
@@ -52,13 +52,13 @@ webserverUser='www-data'
|
||||
databaseSystem='mariadb'
|
||||
|
||||
# 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/'
|
||||
|
||||
# File names for backup files
|
||||
# If you prefer other file names, you'll also have to change the NextcloudBackup.sh script.
|
||||
|
||||
Reference in New Issue
Block a user