#!/bin/bash

. ~/bin/mountdrobo.sh

# The source of the pictures you want to copy.
# If you specify a folder like <path>/folder/ it will sync that folder to the destination. 
# If you specify a folder like <path/folder/* it will sync all files and folders inside the folder to the destination.
#
# The default is ~/Pictures/* which is all images and folders inside the Pictures folder
pictures_source="~/Pictures/*"

# The destination where you want to copy the pictures
# If you specify a folder like <path>/folder you may end up overwriting the destination
# If you specify a folder like <path>/folder/ the script should sync the source into that folder 
#
# The default is ~/desktop/${alias_name}/ which puts the source into the mounted droboshare's base directory
#  You will probably want to change this to something like ~/Desktop/${alias_name}/<pictures folder>/ so that
#  you don't end up with a bunch of pictures and folders in the root of your drobo share
pictures_destination="~/Desktop/${alias_name}/"

isDroboMounted

if [ $? -eq 0 ]
then
	rsync -av ${pictures_source} "${pictures_destination}"
fi

