Skip to content

Instantly share code, notes, and snippets.

@jaygilmore
Created May 9, 2018 19:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaygilmore/dc6f4679458fbe4a2cb34d28e41fa37a to your computer and use it in GitHub Desktop.
Save jaygilmore/dc6f4679458fbe4a2cb34d28e41fa37a to your computer and use it in GitHub Desktop.
Rsync from source into Cloud from another server

Logged into Cloud and Rsync from another location into Cloud. Note the Port command if needed.

rsync -azvvP -e  user@192.168.2.1:/var/www/ /www --filter=". filter.txt"

With the SSH command for the port if needed.

rsync -azvvP -e 'ssh -p 2801' user@192.168.2.1:/var/www/ /www --filter=". filter.txt"

Filter.txt

Put the following into a filter.txt file on the server from which you're running the rsync command:

+ core/components/*
+ core/packages/*
- core/
- core/packages/core/
- core/packages/config.core.php
- manager/
- setup/
- index.php
- config.core.php
- connectors/config.core.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment