2021-11-30 18:46:31 +01:00
|
|
|
#!/bin/bash
|
2018-12-21 17:38:50 +01:00
|
|
|
|
2021-11-30 18:46:31 +01:00
|
|
|
set -xeuo pipefail
|
2018-12-21 17:38:50 +01:00
|
|
|
|
2022-01-06 19:22:44 +01:00
|
|
|
backup_ssh="kunsi-t470@backup-kunsi.htz-hel.kunbox.net"
|
|
|
|
|
2020-11-25 22:05:24 +01:00
|
|
|
# Push some git repos
|
2018-12-21 17:38:50 +01:00
|
|
|
pass git push
|
2019-09-24 16:13:41 +02:00
|
|
|
git --git-dir=$HOME/.cfg/ --work-tree=$HOME push
|
2018-12-21 17:38:50 +01:00
|
|
|
|
2020-12-23 09:08:37 +01:00
|
|
|
# Fetch a fresh copy of all locally cloned git repos
|
|
|
|
for dir in $(find /home/kunsi/git -mindepth 1 -maxdepth 1 -type d)
|
|
|
|
do
|
2021-07-09 12:42:32 +02:00
|
|
|
git -C "$dir" fetch || true
|
2020-12-23 09:08:37 +01:00
|
|
|
done
|
|
|
|
|
2020-11-25 22:05:24 +01:00
|
|
|
# Do a backup.
|
2022-02-13 08:47:44 +01:00
|
|
|
sudo /usr/local/bin/generate-backup-with-retries
|
2022-01-15 06:31:29 +01:00
|
|
|
printf '\a'
|
2021-11-30 18:46:31 +01:00
|
|
|
|
2020-11-25 22:05:24 +01:00
|
|
|
# Do updates
|
2022-01-15 06:31:29 +01:00
|
|
|
sudo pacman -Syu
|