Skip to content

Instantly share code, notes, and snippets.

@caio-nas
Last active December 20, 2015 08:29
Show Gist options
  • Select an option

  • Save caio-nas/6100612 to your computer and use it in GitHub Desktop.

Select an option

Save caio-nas/6100612 to your computer and use it in GitHub Desktop.
syncs local dir with remote dir and log the outputs and errors. Always use complete path. The -n flag activates test run (only simulation)
(rsync -n -art -v --delete-after --force -e ssh integrator:/var/www/vhosts/caionascimento.com.br/httpdocs/catalogo_ifba/ /home/consultjr/merge/ 2>&1) | tee rsync_log.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment