adding notes on Nextcloud

This commit is contained in:
2025-12-04 21:47:37 -05:00
parent ba805be903
commit 49415f072a
3 changed files with 22 additions and 1 deletions

View File

@@ -0,0 +1,4 @@
Nextcloud provides file sharing, calendaring, contact management, and other services (depending on the Nextcloud apps installed and enabled).
See https://nextcloud.com/ for general information on Nextcloud.

View File

@@ -0,0 +1,16 @@
Steps to upgrade Nextcloud from one version to another.
1. Put the Nextcloud instance into maintenance mode
docker exec --user www-data nextcloud-app-1 php occ maintenance:mode --on
Note that 'docker exec' is used to run commands within the Nextcloud docker container; and '--user www-data' is used to run as the user that owns all of the Nextcloud files.
2. Back up the Nextcloud container's files to a location outside the container's mounted volume. 'rsync' is recommended:
rsync -Aavx /mnt/storage/appdata/nextcloud/www/ <backup-target-dir>/
rsync should be run as root. rsync with these options should preserve file ownership & permissions
3. Back up MariaDB database:
docker exec nextcloud-db-container-name mysqldump --single-transaction -h localhost -u nextcloud_user -pnextcloud_password nextcloud_db_name > nextcloud-sqlbkp_$(date +"%Y%m%d").bak

View File

@@ -1 +1,2 @@
This directory documents the services provided by various devices on the network. There is one subdirectory per service provided.