Skip to content

Instantly share code, notes, and snippets.

@devm33
Created December 3, 2018 01:21
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 devm33/8736a6b0f42ce647561a6b8670da2609 to your computer and use it in GitHub Desktop.
Save devm33/8736a6b0f42ce647561a6b8670da2609 to your computer and use it in GitHub Desktop.
A Determined Rsync
#!/bin/bash
host='remote'
path='/remote/path/to/dir'
while ! rsync --append-verify -Prz $host:$path .
do
sleep 1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment