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

Allow specifying hostname when backing up #6

Open
askielboe opened this issue Nov 22, 2018 · 2 comments
Open

Allow specifying hostname when backing up #6

askielboe opened this issue Nov 22, 2018 · 2 comments

Comments

@askielboe
Copy link

Would be nice to be able to configure the --host argument to the backup command.

My shell (zsh on macos) has a HOST environment variable, so an easy fix for me is to simply add --host "$HOST" \ to the backup command, and then exporting HOST in the runner config file. This is probably not portable though.

@alphapapa
Copy link
Owner

alphapapa commented Nov 23, 2018

Hi,

That's interesting: does Restic not pick up the hostname automatically?

Maybe what we need is a way to specify extra arbitrary options to commands.

By the way, do you mean --hostname? That's what I see in restic help backup.

@askielboe
Copy link
Author

Hey. Thanks for responding to this.

As of restic 0.9.3 --hostname is deprecated in favor of --host. See the changelog.

If no --host is specified when backing up restic uses os.Hostname(). I'm not sure if that can be changed in the environment somehow, but I think it would probably be better if restic-runner supported the --host argument somehow.

I like the idea of extra arbitrary commands. As long as it can be set in the config files.

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

No branches or pull requests

2 participants