Comments (5)
Modifying the config files for individual runs is not really the intended use-model. Would it be easier to simply modify the script?
from emborg.
That's possible, but currently the script essentially does:
for backup in /root/.config/emborg/*
do
(emborg -c $backup create; emborg -c $backup prune) | Mail [email protected] -s "Borg backup for $backup"
done
Was looking for a way of disabling a particular backup for a while without having to move the settings file out of the directory.
from emborg.
The approach I would take would be to use the presence of a file to indicate that the backup is to be skipped. Something like:
for backup in /root/.config/emborg/*
do
if [ -e ~/.config/emborg/$backup.skip ]
then
Mail [email protected] -s "Borg backup for $backup SKIPPED" < /dev/null
else
(emborg -c $backup create; emborg -c $backup prune) | Mail [email protected] -s "Borg backup for $backup"
fi
done
Then to disable the home backup, you would simply create ~/.config/emborg/home.skip. So,
touch ~/.config/emborg/home.skip
to start skipping the backups, and
rm ~/.config/emborg/home.skip
to start backing it up again.
from emborg.
Yeah, that certainly one approach. I'll look into implementing that. Just thought the option might be worth doing. Obviously nobody else has asked for it!
from emborg.
I appreciate the suggestion. Some of my hesitation comes from the fact that is seems like kind of a dangerous option. My concern is that people will disable a backup and forget to re-enable it. Of course Emborg would probably emit a message saying that the backup is disabled, but such messages can get lost.
from emborg.
Related Issues (20)
- IRC channel? HOT 4
- Healthchecks 'success' not sent when borg returns 1 (which is only a warning) HOT 11
- Unable to run tests in 1.29 HOT 8
- Clearer explanation of "working_dir" and paths? HOT 2
- run_after_last_backup may sometimes run too soon HOT 5
- Support for 'borg compact' HOT 3
- "emborg --narrate create" with "check_after_create = 'latest'" prints entire output of "borg list" to stdout HOT 4
- Support for borg create --upload-ratelimit in borg 1.2 HOT 2
- compact_after_delete generates error HOT 6
- Occasional test failures HOT 1
- Add support for 'recreate' HOT 3
- Tests fail on v1.33 with borg 1.2.2 HOT 4
- Tests not runnable on case-insensitive systems HOT 3
- Composite create fails HOT 2
- Tests fail on v1.36 HOT 4
- nestedtext new dependency HOT 2
- Dry run option doesn't work for `emborg check --repair` HOT 2
- Somewhere along the line emborg stopped posting to healthchecks.io HOT 3
- Recommended install with new pip limitations HOT 5
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 emborg.