Compare commits
11 Commits
b2bc182e02
...
bc0a99c883
| Author | SHA1 | Date | |
|---|---|---|---|
| bc0a99c883 | |||
| 6577f26cd1 | |||
| 2787b90948 | |||
| fcf7d99318 | |||
| 1a758dd8d8 | |||
| 0adb685741 | |||
| a918636dd4 | |||
| c5c697eefd | |||
| a049d72379 | |||
| 44a1c5e6e3 | |||
| 55ab0d203b |
@@ -14,6 +14,9 @@
|
||||
set -o nounset
|
||||
set -o pipefail
|
||||
|
||||
# Prevent failures when not battery present
|
||||
shopt -s nullglob
|
||||
|
||||
for battery in /sys/class/power_supply/*/capacity ; do
|
||||
capacity="$(< "$battery")"
|
||||
if (( "${capacity}" < 40 )) ; then
|
||||
@@ -186,7 +189,7 @@
|
||||
|
||||
restic \
|
||||
--cache-dir=/var/cache/restic/ \
|
||||
--repo="b2:${BUCKET_NAME}:backup" \
|
||||
--repo="b2:${BUCKET_NAME}:hera" \
|
||||
--password-file=/etc/restic/repopassword \
|
||||
--verbose \
|
||||
"${@}"
|
||||
@@ -219,7 +222,7 @@
|
||||
|
||||
run forget restic-cmd \
|
||||
forget \
|
||||
--prune
|
||||
--prune \
|
||||
--keep-daily 30 \
|
||||
--keep-monthly 12 \
|
||||
--keep-yearly 3
|
||||
|
||||
Reference in New Issue
Block a user