Skip to content

Instantly share code, notes, and snippets.

@jsta
Forked from DarwinAwardWinner/.home-rsync-filter
Created November 6, 2020 13:46
Show Gist options
  • Save jsta/5dfe8af53de129534d613a0fc707a4a5 to your computer and use it in GitHub Desktop.
Save jsta/5dfe8af53de129534d613a0fc707a4a5 to your computer and use it in GitHub Desktop.
Example rsync filter file for excluding temp files and stuff
## Rsync Filter for $HOME
# Universal excludes -- These apply to all subdirs
- [Cc]ache
- temp
- tmp
- octave-core
# Emacs temp files
- .#*
# Exclude certain directories
# Anything in Downloads can be downloaded again, so don't save it
- /Downloads
- /Dropbox
# These are too big to include
- /Music
- /Videos
- /Pictures
- /bioinformatics
# These are transient
- /temp
- /.local/share/Trash
- /.cache
# Misc files/dirs to exclude
- /.abbrev_defs
- /.adobe
- /.aspell.en.
- /.bogofilter
- /.bzr.log
- /.compiz/session
- /.cpanplus
- /.dbus
- /.dc_history
- /.dropbox
- /.dropbox-dist
- /.dvdcss
- /.esd_auth
- /.fontconfig
- /.freemind/*.mm
- /.gimp-2.6/tmp
- /.gimp-2.6/swap
- /.gksu.lock
- /.googleearth/Cache
- /.googleearth/Temp
- /.gvfs
- /.macromedia
- /.marble/data
- /.Trash
- /.usbcreator.log
- /.xsession-errors*
@jsta
Copy link
Author

jsta commented Nov 6, 2020

-F option uses a personalised list of exclusions in any directory by putting them in a .rsync-filter file in that directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment