Skip to content

Instantly share code, notes, and snippets.

View timp80's full-sized avatar
🐢

Tim P timp80

🐢
  • Perth, Australia
View GitHub Profile
@timp80
timp80 / nextcloud-docker-backup.sh
Created December 18, 2023 05:18 — forked from computercam/nextcloud-docker-backup.sh
docker nextcloud backup / restore
#!/usr/bin/env bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
TIMESTAMP=`date +"%Y-%m-%d-%T"`
BACKUP_DIR="${DIR}/${TIMESTAMP}"
APPDATA_DIR="${DIR}/../appdata"
MYSQL_USER="root"
MYSQL_PASSWORD="abc123"
MYSQL_DB="nextcloud_db"