#!/bin/sh set -euo pipefail set -x # Push some git repos pass git push git --git-dir=$HOME/.cfg/ --work-tree=$HOME push # 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/" \ --exclude "/home/kunsi/.npm/" \ --exclude "/home/kunsi/.nvm/" \ --exclude "/home/kunsi/.platformio/" \ --exclude "/home/kunsi/Downloads/" \ --exclude "/home/kunsi/Schreibtisch/" \ --exclude "/home/kunsi/VirtualBox VMs/" \ "/home/kunsi" "kunsi-t470@nas":backups/ rsync -zaAP --numeric-ids --delete --relative \ --rsync-path="/usr/bin/rsync --fake-super" \ -e "ssh" \ "/etc" "kunsi-t470@nas":backups/ # Do updates yay -Syu