Skip to content

Instantly share code, notes, and snippets.

@todd-dsm
Last active November 11, 2025 18:13
Show Gist options
  • Select an option

  • Save todd-dsm/734acfc74aef52c4ff339929d7569f05 to your computer and use it in GitHub Desktop.

Select an option

Save todd-dsm/734acfc74aef52c4ff339929d7569f05 to your computer and use it in GitHub Desktop.
Example rsync-backups special-backups.conf output
~/.config/rsync/backups 2>&1 | tee /tmp/backups.log
Running LIVE backup
Backing up special files:
+ IFS=,
+ read -r program source_path
+ [[ -z # backup random files and follow the format; $HOME is assumed ]]
+ [[ # backup random files and follow the format; $HOME is assumed = \#* ]]
+ continue
+ IFS=,
+ read -r program source_path
+ [[ -z cursor ]]
+ [[ cursor = \#* ]]
+ source_file='/Users/USER/Library/Application Support/Cursor/User/settings.json'
+ filename=settings.json
+ '[' -f '/Users/USER/Library/Application Support/Cursor/User/settings.json' ']'
+ cp '/Users/USER/Library/Application Support/Cursor/User/settings.json' /Users/USER/.config/admin/backup/cursor-settings.json
+ printf '%s\n' ' cursor'
cursor
+ IFS=,
+ read -r program source_path
+ [[ -z foo ]]
+ [[ foo = \#* ]]
+ source_file=/Users/USER/bar.baz
+ filename=bar.baz
+ '[' -f /Users/USER/bar.baz ']'
+ cp /Users/USER/bar.baz /Users/USER/.config/admin/backup/foo-bar.baz
+ printf '%s\n' ' foo'
foo
+ IFS=,
+ read -r program source_path
+ '[' -n '' ']'
+ set +x
Backing up /Users/USER:
sending incremental file list
./
.config/admin/backup/cursor-settings.json
.config/admin/backup/foo-bar.baz
Number of files: 97,291 (reg: 84,148, dir: 13,026, link: 117)
Number of created files: 0
Number of deleted files: 0
Number of regular files transferred: 2
Total file size: 75.00G bytes
Total transferred file size: 6.41K bytes
Literal data: 6.41K bytes
Matched data: 0 bytes
File list size: 57.34K
File list generation time: 0.002 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 3.64M
Total bytes received: 14.37K
sent 3.64M bytes received 14.37K bytes 2.43M bytes/sec
total size is 75.00G speedup is 20,538.50
Backup complete: Tue Nov 11 09:56:02 PST 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment