Skip to content

Instantly share code, notes, and snippets.

@diogoca
Created April 26, 2014 17:30
Show Gist options
  • Select an option

  • Save diogoca/11326047 to your computer and use it in GitHub Desktop.

Select an option

Save diogoca/11326047 to your computer and use it in GitHub Desktop.
Rsync Linux Example
#!/bin/bash
# EXIBIR COMANDOS EXECUTADOS
set -x
while true;
do
rsync -rtvu --exclude ".*" /media/sf_meteor/microscope/ /home/microscope
rsync -rtvu --exclude "local*" /home/microscope/.meteor/ /media/sf_meteor/microscope/.meteor
sleep 5
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment