iankelling.org
/
git
/
distro-setup
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
various minor fixes
[distro-setup]
/
btrbk-run
diff --git
a/btrbk-run
b/btrbk-run
index f45fe36f5176cbec8c776d8186152c47e0ebfa88..a1c6963a926b445454ca1d27634a56737e2d34da 100755
(executable)
--- a/
btrbk-run
+++ b/
btrbk-run
@@
-13,6
+13,9
@@
# See the License for the specific language governing permissions and
# limitations under the License.
# See the License for the specific language governing permissions and
# limitations under the License.
+
+# todo: remove old leaf subvols, like keep up to 1 month or something.
+
set -eE -o pipefail
trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR
set -eE -o pipefail
trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR
@@
-78,7
+81,7
@@
echo -e "$0: options: conf_only=$conf_only\ndry_run=$dry_run\nresume_arg=$resume
# set default targets
if [[ ! -v targets ]]; then
case $HOSTNAME in
# set default targets
if [[ ! -v targets ]]; then
case $HOSTNAME in
- x2)
+ x2
|kw
)
if [[ $HOSTNAME == "$MAIL_HOST" ]]; then
targets=($HOME_DOMAIN)
fi
if [[ $HOSTNAME == "$MAIL_HOST" ]]; then
targets=($HOME_DOMAIN)
fi