To backup a directory on a remote machine to a local machine (or the other way around) in Linux, there are several methods:
1. rsync -avz username@remoteserver.calm:/home/stuffToBackup /opt/backup
This will recursively copy everything from remote to local preserving permissions and ownership
2. scp -r -C username@remoteserver.calm:/home/stuffToBackup /opt/backup
Again, this will copy everything from remote to local, but there is one potential pitfall: It WILL follow symbolic links.
f.e.: If on the remote server there is a public_html directory, and a symlink www pointing to public_html, it will copy both as if they are regular directories.
Solution to the symlink problem? Don’t have rsync available?
Use ssh and tar:
ssh username@remoteserver.calm “tar cjp /home/stuffToBackup” | tar jxvp -C /opt/backup/
This will copy symlinks as-is (ie: create the symlink in the backup directory), using bzip2 compression (tar’s j option), preserving ownership and permissions (tar’s p option), and will extract the data to /opt/backup (tar’s -C option)

Like