Something went wrong. Try again.
nix flake config
Something went wrong. Try again.
1234567891011121314151617181920212223242526set -euo pipefail
sets=( "$HOME/.local/share/FasterThanLight/|settings.ini,steam_autocloud.vdf")
case "$(uname -n)" in bubblegum) peer=thoughtful ;; *) peer=bubblegum ;;esac[[ $# -ge 1 ]] && peer=$1
echo "Syncing with $peer (newest wins)..."for set in "${sets[@]}"; do dir=${set%%|*} args=(-au -s --info=name) IFS=, read -ra excludes <<<"${set#*|}" for e in "${excludes[@]}"; do [[ -n "$e" ]] && args+=("--exclude=$e") done echo "== $dir" rsync "${args[@]}" "$peer:$dir" "$dir" rsync "${args[@]}" "$dir" "$peer:$dir"doneecho "Done."