Last active
February 13, 2020 13:10
-
-
Save anilnautiyal/e2f02b875c24c38272f27e63a6a9db60 to your computer and use it in GitHub Desktop.
Jenkins Rsync Commands
This file contains 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
sshpass -p 'Password' rsync -Prtgovze "ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" --no-perms --no-owner --no-group --delete-after --exclude config/database.php --exclude config/config.php --exclude config/constants.php --exclude config/routes.php --exclude helpers/encrypt_decrypt_helper.php --exclude cms/cms.php --exclude assets/spreadsheet/uploads/ /var/lib/jenkins/jenkins/workspace/repo-name/src/ destination-server-hostname@IP:/usr/share/nginx/html/directory-name/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment