Skip to content

Question about changing data DIR? #890

Answered by szaimen
killmasta93 asked this question in Questions
Discussion options

You must be logged in to vote

I guess the simplest way would be stopping all containers from the aio interface, creating a backup, use rsync to sync the files from the old datadir (in your case probably /var/lib/docker/volumes/nextcloud_aio_nextcloud_data/_data/ into e.g. /mnt/ncdata) and then removing and recreating the mastercontainer with -e NEXTCLOUD_DATADIR="/mnt/ncdata" and also starting the containers again from the aio interface.

Another solution would be stopping all containers from the aio interface, creating a backup, removing and recreating the mastercontainer with -e NEXTCLOUD_DATADIR="/mnt/ncdata" then restore the most recent backup and afterwards starting the containers again from the aio interface. In …

Replies: 5 comments 12 replies

Comment options

You must be logged in to vote
6 replies
@heshunme
Comment options

@killmasta93
Comment options

@heshunme
Comment options

@Javex
Comment options

@Softbox44
Comment options

Answer selected by szaimen
Comment options

You must be logged in to vote
2 replies
@szaimen
Comment options

@mikebakke
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@patman-cp
Comment options

Comment options

You must be logged in to vote
2 replies
@patman-cp
Comment options

@SingerJonathan
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
10 participants