Skip to content

Instantly share code, notes, and snippets.

@makhnanov
Created October 9, 2023 14:34
Show Gist options
  • Save makhnanov/862d7de6b337cbe1458f1c09c732dd6c to your computer and use it in GitHub Desktop.
Save makhnanov/862d7de6b337cbe1458f1c09c732dd6c to your computer and use it in GitHub Desktop.
Easy debug on prod with rsync
while true; do rsync -r --ignore-times --rsh="/usr/bin/sshpass -p SecretPassword ssh -o StrictHostKeyChecking=no -l root" ./ [email protected]:/var/www/path/on/remote/serv/; inotifywait -r ./; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment