Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initializing empty repo (new feature?) #1

Open
uuf6429 opened this issue Jul 6, 2018 · 1 comment
Open

Initializing empty repo (new feature?) #1

uuf6429 opened this issue Jul 6, 2018 · 1 comment

Comments

@uuf6429
Copy link

uuf6429 commented Jul 6, 2018

I ran a new container with these variables: RESTIC_REPOSITORY, AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, RESTIC_PASSWORD and no cmd set.

This means that (from what I understood), it will just run supervisord and eventually launch the backups.

The first time it tried to do the backup, it failed because restic couldn't find a valid repository.
I had to create another container with the same variables but with the cmd restic init (if I remember correctly).

So, first question: is this normal expected behaviour?
Second question: maybe we can make it into a feature to init the repo if there isn't one (before cron backup)?

@johansmitsnl
Copy link
Collaborator

It is normal behaviour. You can spin up the container and run the necessary commands.

You can also check the readme: https://github.com/johansmitsnl/docker-restic#commands-to-start-with

Can you provide a PR to verify and create if no exists or pass a small script to check this?

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

No branches or pull requests

2 participants