Skip to content

Instantly share code, notes, and snippets.

@seanmavley
Created February 12, 2016 12:58
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 seanmavley/1ec480d99c291428e15f to your computer and use it in GitHub Desktop.
Save seanmavley/1ec480d99c291428e15f to your computer and use it in GitHub Desktop.
Backup using Osync - https://github.com/deajan/osync
#!/bin/bash
# backup using https://github.com/deajan/osync
# Usage:
# ./backup-script nameOfFolder
# e.g
# ~$ ./backup-script Folder SecondFolder
echo "Starting backup"
for i
do
echo "Backing up from ~/home/khophi/$i to /media/khophi/khophiData/$i..."
osync.sh --master=/home/khophi/$i --slave=/media/khophi/khophiData/$i
echo "Done backing up"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment