Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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