Skip to content

Instantly share code, notes, and snippets.

@josefnpat
Created November 16, 2012 10:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save josefnpat/4086310 to your computer and use it in GitHub Desktop.
Save josefnpat/4086310 to your computer and use it in GitHub Desktop.
Use rsync to mirror folders
#!/bin/sh
MASTER="./master/"
SLAVE="./slave/"
date +%s > ${MASTER}.lastupdate
rsync -vazlpEogt --delete --progress $MASTER $SLAVE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment