laurent22 / rsync-time-backup

Time Machine style backup with rsync.
3.38k stars 446 forks source link

allow for include-from #132

Open mandric opened 6 years ago

mandric commented 6 years ago

The current script supports the --exclude-from rsync option but I'm finding I want to exclude most of a directory except for a few bits of configuration. For example data for applications that is already backed up elsewhere.

exclude-config.txt:

/Users/mandric/Library/Application Support

include-config.txt

/Users/mandric/Library/Application\ Support/Bitcoin/wallets

I'm a more on the side specifying what to include rather than exclude. If you think this feature is useful I can submit a PR.

ghost commented 5 years ago

That would be so great ...

kapitainsky commented 4 years ago

All rsync options are supported. Use --rsync-set-flags and you can specify anything you need.