Skip to content

Instantly share code, notes, and snippets.

@mbaldessari
Last active January 27, 2026 16:59
Show Gist options
  • Select an option

  • Save mbaldessari/dc8907005e5017974f98c6ba4058e17e to your computer and use it in GitHub Desktop.

Select an option

Save mbaldessari/dc8907005e5017974f98c6ba4058e17e to your computer and use it in GitHub Desktop.
cat > backup.sh <<EOF
#!/bin/bash
set -ex
rsync -avP --delete --exclude-from='exclude-list.txt' michele@oshie.int.rhx:/home/michele .
EOF
cat > exclude-list.txt<<EOF
.cache/
.cargo/
.espressif/
.local/share/
.share/
.t/
.var/
go/
tmp/
Devel/kernel/upstream
Devel/kernel/linux-stable
Devel/kernel/rhel-10
Devel/kernel/bcachefs
Devel/kernel/bcachefs-tools
*.iso
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment