[READ-ONLY] Mirror of https://github.com/probablykasper/my-bash-scripts. My personal bash scripts
cli
0

Configure Feed

Select the types of activity you want to include in your feed.

backup: Back up nix packages

Kasper (Dec 5, 2025, 11:13 AM +0100) 8b054c7d 61e5f9cb

+8
+8
bin/backup
··· 27 27 28 28 PW=$(security find-generic-password -w -s 'Restic' -a "$REPO") 29 29 30 + copy_if_different() { 31 + if ! cmp -s "$1" "$2"; then 32 + cp -f "$1" "$2" 33 + fi 34 + } 35 + 36 + copy_if_different ~/.nix-profile/manifest.json ~/Documents/nix-backup/manifest.json 37 + 30 38 # RCLONE_BWLIMIT=100M \ 31 39 ( 32 40 RESTIC_PASSWORD="$PW" \