Closed Enrico204 closed 3 years ago
As mentioned in #157, we plan to remove the default path in a future release and make it a required argument.
@wojas: Do you have objections to cleanup the default path calculation for now until we're ready to change how the rest-server is configured?
No, go ahead. It's just that having a default that eats your backups is not great anyway.
I changed the code according to the review (except for the comment on the command line help section) :-)
I've rebased this pull request to the current master
to resolve a conflict :-)
What is the purpose of this change? What does it change?
This pull request removes the hardcoded reference to
/tmp/restic
replacing with platform-specific path, retrieved usingos.TempDir()
stdlib function.Was the change discussed in an issue or in the forum before?
Issue #157
Checklist
os.TempDir()
is a builtin functionchangelog/unreleased/
that describes the changes for our users (template here)gofmt
on the code in all commits