Browse Source

updatepi jetzt mit reboot Möglichkeit

master
Olli Graf 3 years ago
parent
commit
f78b161bd8
  1. 2
      ansible.cfg
  2. 2
      bin/borg-daily
  3. 4
      bin/borg-prune
  4. 1
      initpi.yml
  5. BIN
      roles/mountbackup/tasks/.main.yml.swp
  6. 4
      roles/updatepi/tasks/main.yml

2
ansible.cfg

@ -2,7 +2,7 @@
inventory = hosts
interpreter_python = auto_silent
nocows = 1
timeout= 30
timeout= 60
force_valid_group_names = ignore
private_key_file = ~/.ssh/id_rsa

2
bin/borg-daily

@ -19,7 +19,7 @@
# 0.2.0
PURPOSE="SYSTEM"
TARGET_HOST=""
LOCATION="/tank/borg/"
LOCATION="/backup/Backup-Repo/borg/"
BORG_REPO="${HOSTNAME}"
TARGET="${TARGET_HOST}${LOCATION}${BORG_REPO}"
ARC_NAME="${HOSTNAME}+${USER}:$(date +"%Y%m%dT%H%M%S")"

4
bin/borg-prune

@ -19,11 +19,11 @@
# 0.2.0
PURPOSE="SYSTEM"
TARGET_HOST=""
LOCATION="/tank/borg/"
LOCATION="/tank/borg"
BORG_REPO="${HOSTNAME}"
ARC_NAME="${HOSTNAME}+${USER}:$(date +"%Y%m%dT%H%M%S")"
BORG_COMMENT="Automated \"${PURPOSE}\" backup to repository \"${BORG_REPO}\" at \"${TARGET_HOST}${LOCATION}\" issued $(date +"%Y-%m-%dT%H:%M:%S")."
BORG_OPTS="--keep-within 31d"
BORG_OPTS="--keep-within 15d"
LOGFILE_LOCATION="/tmp"
LOGFILE="borg-${PURPOSE}_$(date +"%Y%m%dT%H%M%S").log"
export BORG_RELOCATED_REPO_ACCESS_IS_OK=yes

1
initpi.yml

@ -5,6 +5,7 @@
roles:
- initpi
- installpkg
- mountbackup
- installsoft
- log2ram
- disableswap

BIN
roles/mountbackup/tasks/.main.yml.swp

Binary file not shown.

4
roles/updatepi/tasks/main.yml

@ -5,4 +5,8 @@
update_cache: yes
cache_valid_time: 120
autoremove: yes
- name: Pi Neustart if /var/run/reboot-reqired exists
command: shutdown -r now
args:
removes: /var/run/reboot-required

Loading…
Cancel
Save