Skip to content

Instantly share code, notes, and snippets.

@aahung
Last active June 6, 2017 02:55
Show Gist options
  • Save aahung/9f384f0001d5e2c34e82476ff69fd206 to your computer and use it in GitHub Desktop.
Save aahung/9f384f0001d5e2c34e82476ff69fd206 to your computer and use it in GitHub Desktop.
Copy from remote server include files with some pattern only
export REMOTE_PATH=/data/xinhong/pd/run_makeup_cr0.02
rsync -a --include="*o/" --include="*.out" --exclude="*" xinhong@144.214.25.68:$REMOTE_PATH . --progress
rsync -a --include="*/" --include="*eff*.out" --exclude="*" xinhong@144.214.25.68:$REMOTE_PATH . --progress
rsync -a --include="*/" --include="*1460000*.out" --exclude="*" xinhong@144.214.25.68:$REMOTE_PATH . --progress
rsync -a --include="*/" --include="*1460000*" --exclude="*" xinhong@144.214.25.68:$REMOTE_PATH . --progress
rsync -a --include="*/" --include="*10600000*" --exclude="*" xinhong@144.214.25.68:$REMOTE_PATH . --progress
rsync -a --include="*/" --include="*507200*" --exclude="*" xinhong@144.214.25.68:$REMOTE_PATH . --progress
rsync -a --include="*/" --include="*6600000*" --exclude="*" xinhong@144.214.25.68:$REMOTE_PATH . --progress
rsync -a --include="*/" --include="*sq*.out" --exclude="*" user@hostname:~/path/ ./ --progress
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment