X-Git-Url: https://git.p6c8.net/nextcloud-backup-restore.git/blobdiff_plain/d6c9915e32bd516a0ca23c2cb846e26472bf3019..806b67d754ba6a88b04cf286054fe9e9808079cc:/NextcloudBackup.sh diff --git a/NextcloudBackup.sh b/NextcloudBackup.sh index 69c760a..ace78d8 100644 --- a/NextcloudBackup.sh +++ b/NextcloudBackup.sh @@ -22,13 +22,14 @@ backupdir="${backupMainDir}/${currentDate}/" # TODO: The directory of your Nextcloud installation (this is a directory under your web root) 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" # TODO: Your Nextcloud database name nextcloudDatabase="nextcloud_db" # TODO: Your Nextcloud database user dbUser="nextcloud_db_user" # TODO: The password of the Nextcloud database user -dbPassword="MeInPasSw0rT" +dbPassword="mYpAsSw0rd" # TODO: Your webserver user webserverUser="www-data" @@ -107,4 +108,4 @@ sudo -u "${webserverUser}" php occ maintenance:mode --off cd ~ echo "DONE!" -echo "Backup created: ${backupdir}" \ No newline at end of file +echo "Backup created: ${backupdir}"