Skip to content

Instantly share code, notes, and snippets.

@anilnautiyal
Last active February 13, 2020 13:10
Show Gist options
  • Save anilnautiyal/e2f02b875c24c38272f27e63a6a9db60 to your computer and use it in GitHub Desktop.
Save anilnautiyal/e2f02b875c24c38272f27e63a6a9db60 to your computer and use it in GitHub Desktop.
Jenkins Rsync Commands
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