Skip to content

How to avoid the creation of a directory structure if no backup is found? #7887

Answered by rosnu
rosnu asked this question in Q&A
Discussion options

You must be logged in to vote

The root cause lies in Docker's default handling of volumes and mounting. Docker creates an empty directory if the host directory to be mounted is not available. This behavior also applies to Nextcloud-Borg volumes. This is not directly related to Nextcloud or Borg; it's more about the configuration.

I will likely create a script that, before running Borg Backup, mounts the correct backup paths if necessary.

Replies: 1 comment 2 replies

Comment options

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

@rosnu
Comment options

Answer selected by rosnu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants