how I move stuff between servers with rsync
A few times on Twitter, I've mentioned how "easy" it is to move stuff between servers using the rsync shell command. It's actually an extremely powerful program for synchronizing two directories - even if they're not on the same volume, or even on the same computer. To do this, you'll need to login to one of the servers via SSH. Once there, invoke the geeky incantation:
rsync -rtlzv --ignore-errors -e ssh . username@hostname:/path/to/directoryWhat that basically says is, "run rsync, and tell it to recursively copy all directories, preserving file creation and modification times, maintaining proper symlinks (for aliases and stuff like that), compress the files as they're being copied in order to save bandwidth, and provide verbose updates as you're doing it. Use SSH as the protocol, to securely transfer stuff from the current directory to the server 'hostname' using the username 'username'. On that destination server, stuff the files and directories into '/path/to/directory'"



