@JoRo1990 because you have another webserver user in your container. which image are you using?
i’m using the command in my playboooks and they work.
well.
you create each time a new tar file. and you do this on the same device nextcloud is running on. so you have to make sure older tar file get deleted. and hope your device/server/nas will never fail.
that’s why backup is always kind of challenging.
your first “problem” is solved with restic because you can do automatic house keeping.
for the second “problem” you would need a second device or cloud storage.
you do a restore.
no. because they come with their images. unless you have additional setting. but they would be stored on your host.
no. but you should do docker right.
would you mind to send me your docker-compose file via dm? or the output of docker ps
and docker inspect <container-id>
just to be precise: the images of nextcloud, nginx, mariadb, etc.pp. are stored on docker hub. you pull them and start containers. anything change or created in the file system of these containers are lost in case you remove the container and start a new one from the image. happens in case of an update.
to get data persistent you use volumes. there are two types of volumes. you can define a directory (like /sharefolders/nextcloud-data) and map this into the containers filesystem. (-v /sharefolders/nextcloud-data:/var/www/html/data) the disadvantage is that you get lost/confused with ownership and rights of that files. I’m pretty sure there should be no user Johannes in your container so your screenshot is a bit confusing to me (and maybe to your docker system.) it’s better to let docker handle this. you do this by defining a volume in your compose file and using -v without a / at the beginning. (e.g. -v nextcloud-data:/var/www/data) now you will find the somewhere below /var/lib/docker. docker inspect
will tell you. the files can be backuped like all other files on your host.
so what you want to backup is your docker-compose file and all volumes. if you take this to another server and the system is restored correct you are absolutely sure that backup/restore is working. if you run nextcloud the traditional way it’s a lot more work collecting all files from /etc and so forth.
p.s.: in case of Johannes and Julia only using nextcloud to share some files it might be enough to have the synced files on your desktop and/or laptop. no need for backup here at all.