How do I keep /var/www identical on two servers with minimal transfer?
Try: rsync -avz --checksum --delete /var/www/ linuxteck@backup:/var/www/ Info: --checksum compares file contents rather than timestamps to catch true changes. --delete removes destination files that no longer exist on the source. Examples: $ rsync -avz --dry-run /src/ user@host:/dst/ # Dry-run preview $ rsync -avz --exclude='*.log' --exclude='cache/' /src/ /dst/ $ rsync -avz --link-dest=/prev/backup […]
Read More