def rsyncd(self, local_dest, remote_dest):
local(
"rsync --progress --delete -avzq --rsh=\"sshpass -p {ssh_pass} ssh -p 22 \" "
"--exclude='assets/sass' --exclude='assets/js/app' "
"--exclude='scripts' --exclude='node-modules' --exclude='WEB-INF' "
"{local_dest}/ {ssh_user}@{ssh_host}:{remote_dest}".format(
local_dest=local_dest,
remote_dest=remote_dest,
ssh_user=env.user,
ssh_host=env.hosts,
ssh_pass=env.password))
评论列表
文章目录