Skip to content

Instantly share code, notes, and snippets.

View FaysalM's full-sized avatar
🛠️
Building

electo FaysalM

🛠️
Building
View GitHub Profile
@FaysalM
FaysalM / rsync-retry.sh
Last active August 29, 2015 14:26 — forked from iangreenleaf/rsync-retry.sh
rsync with retries
#!/bin/bash
### ABOUT
### Runs rsync, retrying on errors up to a maximum number of tries.
### Simply edit the rsync line in the script to whatever parameters you need.
# Trap interrupts and exit instead of continuing the loop
trap "echo Exited!; exit;" SIGINT SIGTERM
MAX_RETRIES=50