rsync -azvvP -e [email protected]:/var/www/ /www --filter=". filter.txt"
With the SSH command for the port if needed.
rsync -azvvP -e 'ssh -p 2801' [email protected]:/var/www/ /www --filter=". 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