Nextcloud version (eg, 29.0.5): 30.0.1
Operating system and version (eg, Ubuntu 24.04): Alpine Linux 3.20.3
Apache or nginx version (eg, Apache 2.4.25): nginx/1.26.2
PHP version (eg, 8.3): 8.2.24
Hi there, I was reading this page on backing up your Nextcloud instance: Backup — Nextcloud latest Administration Manual latest documentation
I installed Nextcloud with Docker and the AIO container, using this command:
docker run \
--init \
--sig-proxy=false \
--name nextcloud-aio-mastercontainer \
--restart always \
--publish 8080:8080 \
--env APACHE_PORT=11000 \
--env APACHE_IP_BINDING=0.0.0.0 \
--volume nextcloud_aio_mastercontainer:/mnt/docker-aio-config \
--volume /var/run/docker.sock:/var/run/docker.sock:ro \
nextcloud/all-in-one:latest
My question is, how do the commands for backup in the Nextcloud docs change given that I’m running Nextcloud in a container? e.g. for
rsync -Aavx nextcloud/ nextcloud-dirbkp_`date +"%Y%m%d"`/
what do I replace nextcloud/
with? I’m not sure where the relevant directory would be on my system.
I would like to back up all data, including user data and configs, so that if something happened to my server I could recreate my entire Nextcloud instance with a backup.
Sorry if this is too basic of a question, I tried to do some searching around but still don’t know the answer to this question.