Created
October 9, 2023 14:34
-
-
Save makhnanov/862d7de6b337cbe1458f1c09c732dd6c to your computer and use it in GitHub Desktop.
Easy debug on prod with rsync
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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