srsudar / eg

Useful examples at the command line.
MIT License
1.8k stars 98 forks source link

Additional examples for rsync #68

Closed bdellaterra closed 7 years ago

bdellaterra commented 7 years ago

Here are a few rsync examples that I find useful to know.

The "multiple sources from a specific folder" example uses brace-expansion. I did some research regarding the portability of this and while it is not POSIX-standard the basic form I use is very well supported on unix environments. (Confirmed on my machine with bash/sh/zsh/ksh/tcsh) Here's a reference: https://en.wikipedia.org/wiki/Comparison_of_command_shells#String_processing_and_filename_matching

I did run "nosetests" and verify the command line output for good measure.

srsudar commented 7 years ago

Great. I agree that those all look very useful. Great job with the formatting and looking into brace expansion as well. I'll merge it and we can revisit it if someone complains.

This will go out in the next release, probably next month.

bdellaterra commented 7 years ago

Excellent!