Comments (6)
That would be a good idea :-)
from bups.
Just added systemd timers support. There is an issue, you cannot control the backup frequency (it's weekly). You'll have to edit the systemd timer manually to change that.
Do you know how to execute a systemd timer each n
days?
from bups.
To achieve this I would use the "OnActiveSec=" option in the [Timer] directive, which defines a monotonic timer relative to the moment the timer itself is activated. By the way I would use hours instead because e.g. I would like to make a snapshot every 2 hours or so. Accordingly using something like this works fine for me:
/etc/systemd/system/bup.timer
[Unit]
Description=Run bup every two hours
[Timer]
OnActiveSec=2hr
[Install]
WantedBy=timers.target
If you want to read more specific information about systemd timers please refer to http://www.freedesktop.org/software/systemd/man/systemd.time.html#Parsing%20Time%20Spans and http://www.freedesktop.org/software/systemd/man/systemd.timer.html
And do not forget to trigger a daemon-reload! (https://wiki.archlinux.org/index.php/Systemd)
from bups.
Thank you!
I have a question: if I set OnActiveSec=7d
, the timer will be executed 7 days after it is activated. But what if the computer is shut down? Will it be executed the next time it is powered on?
from bups.
EDIT: The timer is resetted and the unit will run after 7 Days. Therefore this solution only works for machines which one would never turn off.
from bups.
Systemd timers are now fully supported.
Concerning backups each 2 hours, for the moment you can edit /etc/systemd/system/bups.timer
manually. I've opened a new issue: #5.
from bups.
Related Issues (20)
- Exclude improvements
- bups systemd timer won't load HOT 1
- Add support for PYTHON env
- No way to set encryption key/password? HOT 6
- systemd user service HOT 1
- Debian package not working HOT 2
- Do not hardcode askpass path HOT 4
- Names in backup list don't get updated after name change
- add python-gobject to dependencies HOT 1
- Windows support HOT 1
- Bups fails backup on linux mint HOT 6
- Backups to SAMBA not working HOT 2
- Conda package? HOT 1
- Another schedulers can't be selected if anacron is available on the system HOT 2
- Refactoring or complete forking? HOT 3
- Handle errors caused by single files
- Installing on Ubuntu 18.04 via software shows 'Encfs security' warning HOT 2
- missing labels HOT 2
- [Errno 24] Too many open files on Linux Mint 19.1
- Python 3 HOT 2
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 bups.