X-Git-Url: https://git.p6c8.net/nextcloud-backup-restore.git/blobdiff_plain/ef55effa7f859c292a391f1a664780499829693d..806b67d754ba6a88b04cf286054fe9e9808079cc:/NextcloudRestore.sh diff --git a/NextcloudRestore.sh b/NextcloudRestore.sh index dc1af25..78b624b 100644 --- a/NextcloudRestore.sh +++ b/NextcloudRestore.sh @@ -2,7 +2,7 @@ # # Bash script for restoring backups of Nextcloud. -# Usage: ./NextcloudRestor.sh (e.g. ./NextcloudRestor.sh 20170910_132703) +# Usage: ./NextcloudRestore.sh (e.g. ./NextcloudRestore.sh 20170910_132703) # # The script is based on an installation of Nextcloud using nginx and MariaDB, see https://decatec.de/home-server/nextcloud-auf-ubuntu-server-mit-nginx-mariadb-php-lets-encrypt-redis-und-fail2ban/ # @@ -21,13 +21,14 @@ currentRestoreDir="${mainBackupdir}/${restore}" # 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 restored separately 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" @@ -171,4 +172,4 @@ cd ~ echo "Done" echo "DONE!" -echo "Backup ${restore} successfully restored." \ No newline at end of file +echo "Backup ${restore} successfully restored."