What does rsync -avz do?
The -a flag enables archive mode (preserves permissions, timestamps, symlinks, and directory structure). The -v flag shows verbose output so you can see which files are transferred. The -z flag compresses data during transfer to save bandwidth. Together they form the most common rsync invocation for backups.