Comments (5)
@rugk I am happy to make the change if you like; I am not sure how much control you want over the project.
from borg-cron-helper.
So you are saying you need to start the timer once (even after getting enabled), before it runs?
If this is really the case, then yes, feel free to adjust the wiki. However, IMHO that behavior makes no sense at all for systemd and I did not test it right now, but the blog you linked also does not explicitly state that this systemctl start
was really required?
So I'd really prefer a better source for that. I mean, are you sure this was really the thing that was causing/fixing the issue?
from borg-cron-helper.
So you are saying you need to start the timer once (even after getting enabled), before it runs?
Yes, at least on ubuntu 18.04.
but the blog you linked also does not explicitly state that this systemctl start was really required?
Are you sure? The first line under "Execution" is
Activate at boot and start the backup timer to get your website backed up every day:
Note the "and start" and the lack of any "Optional"
If you want other sources, https://wiki.archlinux.org/index.php/Systemd/Timers says, under "Management" (emphasis mine)
To use a timer unit enable and start it like any other unit (remember to add the .timer suffix). To view all started timers, run:
And yes, if I stop it, it disappears from the list of active timers and returns only when I start it (see below).
# systemctl list-timers | grep borg
Tue 2019-01-01 01:41:45 PST 18h left Mon 2018-12-31 01:04:38 PST 5h 57min ago borg.timer borg.service
# systemctl stop borg.timer
# systemctl list-timers | grep borg
# systemctl start borg.timer
# systemctl list-timers | grep borg
Tue 2019-01-01 00:13:35 PST 17h left Mon 2018-12-31 01:04:38 PST 5h 57min ago borg.timer borg.service
from borg-cron-helper.
from borg-cron-helper.
Ah, I thought that start
would trigger the command immediately, but it seems it only "triggers" the timer, i.e. enables it.
I can imagine, however, that instead of starting it manually a restart of the server would also work, as the enable
command does "[e]nable a unit to be started on bootup" (acc. to Arch wiki).
(Maybe that is why I did not notice it.)
Anyway, thanks for fixing this in the wiki. 😄
from borg-cron-helper.
Related Issues (20)
- Fix Travis-CI build HOT 1
- Update shunit2 HOT 1
- Retry pruning HOT 1
- Verify shunit2 in unit tests
- Improve formatting of error message in unit tests HOT 1
- zenity : Error showing notification HOT 7
- Support excluding directories from backup HOT 5
- autoupdate borg-cron-helper scripts HOT 7
- Error on borgcron_starter.sh execution HOT 5
- Redirect error messages to stderr in borgcron_starter.sh HOT 1
- Ability to invoke databasedump.sh with parameters HOT 3
- Example for backing up snaps
- Pause backup while being on metered connection HOT 1
- Disable desktop notifications in terminal-only mode HOT 5
- Test coverage for databasedump.sh HOT 1
- Consider notify-send instead of zenity HOT 3
- If borg throws an exception, borg-cron-helper reports a "warning" HOT 2
- Add possibility to pass mysqldump parameters HOT 1
- Docker image 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 borg-cron-helper.