Compare commits
9 Commits
bc0a99c883
...
b2bc182e02
| Author | SHA1 | Date | |
|---|---|---|---|
| b2bc182e02 | |||
| 80ee51ccfa | |||
| a453d01cdc | |||
| 259ea5c6cd | |||
| 7b39968a35 | |||
| b01b384d4a | |||
| bb7ae8514c | |||
| bb8b4d1b71 | |||
| ad8e40b78e |
@@ -14,9 +14,6 @@
|
||||
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
|
||||
@@ -189,7 +186,7 @@
|
||||
|
||||
restic \
|
||||
--cache-dir=/var/cache/restic/ \
|
||||
--repo="b2:${BUCKET_NAME}:hera" \
|
||||
--repo="b2:${BUCKET_NAME}:backup" \
|
||||
--password-file=/etc/restic/repopassword \
|
||||
--verbose \
|
||||
"${@}"
|
||||
@@ -222,7 +219,7 @@
|
||||
|
||||
run forget restic-cmd \
|
||||
forget \
|
||||
--prune \
|
||||
--prune
|
||||
--keep-daily 30 \
|
||||
--keep-monthly 12 \
|
||||
--keep-yearly 3
|
||||
|
||||
Reference in New Issue
Block a user