cupcakearmy / autorestic

Config driven, easy backup cli for restic.

Home Page:https://autorestic.vercel.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to start docker in unraid as it is not clear by the documentation where the .autorestic.yml file needs to be located

miguelarios opened this issue · comments

Describe the bug
I am unable to run the container as the location to .autorestic.yml is unclear from the documentation.

Expected behavior
run container

Environment

  • OS: [e.g. iOS]
  • Version: [e.g. 22]

Additional context

Current Docker run command

docker run
  -d
  --name='autorestic'
  --net='bridge'
  -e TZ="America/Chicago"
  -e HOST_OS="Unraid"
  -e HOST_HOSTNAME="EDITH"
  -e HOST_CONTAINERNAME="autorestic"
  -e 'Community_Applications_Conversion'='true'
  -l net.unraid.docker.managed=dockerman
  -v '/mnt/user/':'/data':'rw'
  -v '/mnt/user/appdata/autorestic/':'/home/':'rw' 'cupcakearmy/autorestic'

What is weird is the documentation says that autorestic will search for the .autorestic.yml file in the current directory or the home directory, but bind mounting to /home/ and /app (which is the working directory inside the dockerfile neither gives me a running container. Unless this container is something that is not meant to keep running seems that the docker command in the documentation imply that the image should be removed once done.

I think the Docker container only runs one command and then exits. I believe autorestic itself doesn't do any task scheduling, leaving it up to tools like cron or systemd to call it regularly, and I can see in the autorestic Dockerfile that the command is just autorestic. What output do you see that suggests it can't find the .autorestic.yml?