2018-12-21 16:38:50 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2020-11-25 21:05:24 +00:00
|
|
|
set -euo pipefail
|
|
|
|
set -x
|
2018-12-21 16:38:50 +00:00
|
|
|
|
2020-11-25 21:05:24 +00:00
|
|
|
# Push some git repos
|
2018-12-21 16:38:50 +00:00
|
|
|
pass git push
|
2019-09-24 14:13:41 +00:00
|
|
|
git --git-dir=$HOME/.cfg/ --work-tree=$HOME push
|
2018-12-21 16:38:50 +00:00
|
|
|
|
2020-12-23 08:08:37 +00: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
|
|
|
|
git --git-dir=$dir/.git --work-tree=$dir fetch || true
|
|
|
|
done
|
|
|
|
|
2020-11-25 21:05:24 +00:00
|
|
|
# Do a backup.
|
|
|
|
rsync -zaAP --numeric-ids --delete --relative \
|
|
|
|
--rsync-path="/usr/bin/rsync --fake-super" \
|
|
|
|
-e "ssh" --delete-excluded \
|
|
|
|
--exclude "/home/kunsi/.cache/" \
|
|
|
|
--exclude "/home/kunsi/.config/Rambox/" \
|
2020-12-23 08:08:37 +00:00
|
|
|
--exclude "/home/kunsi/.config/Ferdi/" \
|
2020-12-06 15:19:54 +00:00
|
|
|
--exclude "/home/kunsi/.local/lib/python*/site-packages/" \
|
|
|
|
--exclude "/home/kunsi/.local/share/sddm/" \
|
2020-12-23 08:08:37 +00:00
|
|
|
--exclude "/home/kunsi/.local/share/TelegramDesktop/tdata/user_data/cache/" \
|
|
|
|
--exclude "/home/kunsi/.mozilla/firefox/*/storage/*" \
|
2020-11-25 21:05:24 +00:00
|
|
|
--exclude "/home/kunsi/.npm/" \
|
|
|
|
--exclude "/home/kunsi/.nvm/" \
|
|
|
|
--exclude "/home/kunsi/.platformio/" \
|
2020-12-06 15:19:54 +00:00
|
|
|
--exclude "/home/kunsi/.ssh/cm-*" \
|
|
|
|
--exclude "/home/kunsi/.vdirsyncer" \
|
2020-11-25 21:05:24 +00:00
|
|
|
--exclude "/home/kunsi/Downloads/" \
|
2020-12-06 15:19:54 +00:00
|
|
|
--exclude "/home/kunsi/qemu/Windows_10.qcow2" \
|
2020-11-25 21:05:24 +00:00
|
|
|
--exclude "/home/kunsi/Schreibtisch/" \
|
|
|
|
--exclude "/home/kunsi/VirtualBox VMs/" \
|
|
|
|
"/home/kunsi" "kunsi-t470@nas":backups/
|
|
|
|
|
|
|
|
# Do updates
|
|
|
|
yay -Syu
|