Skip to content

Instantly share code, notes, and snippets.

@jacksgt
jacksgt / file-mirror-scipt
Created May 9, 2015 19:05
Bash File Mirror Script via HTTP
#!/bin/bash
# A bash script for mirroring a file
# Exit codes:
# -1 = local file up to date, nothing to do
# 0 = updated local file, successfull
# 1 (and above) = failure
# Written by Jack Henschel for https://cubieserver.de/blog/