Skip to content

mkdir: cannot create directory ‘/backups/daily/ even running mkdir and chown #95

Answered by prodrigestivill
quevon24 asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @quevon24, it looks like a configuration error.

The path /var/opt/pgbackups is an example path (it is the one specified in the docker-compose.yml example), you will need to specify the local path of the /backups volume you configured. Also those commands are meant to be run outside the docker itself and with the correct user as you did (so sudo might be required if you are using a rooted docker daemon configuration).

For what you are exposing, looks like you did not configure the volumes correctly, if you want to use the local folder /var/opt/pgbackups for backups as you are configuring. Then ensure this lines are set up in you postgres-backup-local container (look at the example in…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by prodrigestivill
Comment options

You must be logged in to vote
0 replies
Comment options

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

@prodrigestivill
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #57 on August 20, 2022 17:49.