Comments (3)
Okay, but the correct way to solve that problem is to set PATH
in the crontab. See man 5 crontab
.
from restic-runner.
I actually followed the advice of this answer:
https://stackoverflow.com/a/2388105
I also find it weird that if PATH was the best practice, the distro packager didn't include it in their default configuration.
Not sure what's the best solution is here, but IMHO a wrapper script should allow to specify the path for the binary, for instance I just switched to a beta binary of restic to address my other issue.
(I'm trying to create a pull request to propose my changes but I can't seem to be able to do it :()
from restic-runner.
I also find it weird that if PATH was the best practice, the distro packager didn't include it in their default configuration.
That's not weird. There are many distros and many packagers. And Unix is old. And it's documented in the man page.
Not sure what's the best solution is here, but IMHO a wrapper script should allow to specify the path for the binary, for instance I just switched to a beta binary of restic to address my other issue.
I would prefer to avoid adding options inside the script itself, because they cause the script to diverge from upstream, making it difficult for users to merge changes. So:
- There might be a good reason to do this, but for the sake of crontabs isn't one, because there's already a canonical Unix solution (e.g. this answer on that page: https://stackoverflow.com/a/2409369).
- If there is a good reason, it would be better to store the path in a config file or symlink or something, rather than in the script itself.
from restic-runner.
Related Issues (20)
- Complete set of instructions for MacOS. Please add to README HOT 3
- How do I pass this parameter -o b2.connections=50 to the restic-runner script HOT 2
- snapshot-ids does not work HOT 2
- snapshot-ids does not work
- Local metadata cache dir parameter in global HOT 6
- Accumulating temporary files HOT 1
- forget policy variables to command don't work HOT 1
- Documentation: why password is stored on same repo folder HOT 1
- du: cannot access HOT 1
- Wrong exit status if no error occurred HOT 5
- ./restic-runner: line 414: readarray: command not found ERROR: Unable to list paths in snapshot HOT 3
- ./restic-runner: line 91: fusermount: command not found HOT 3
- /usr/bin/restic-runner: line 242: - : syntax error: operand expected (error token is "- ") HOT 2
- snapshot-ids does not work as described in the readme (and fix) HOT 2
- [RFE] use keep_policy per data set instead of repo HOT 3
- syntax error: operand expected HOT 2
- Allow specifying hostname when backing up HOT 2
- Issue running on macOS HOT 4
- date: illegal time format on MacOS Mojave HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from restic-runner.