Created
February 12, 2016 12:58
-
-
Save seanmavley/1ec480d99c291428e15f to your computer and use it in GitHub Desktop.
Backup using Osync - https://github.com/deajan/osync
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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