1
0
mirror of https://github.com/drewcassidy/dotfiles synced 2024-09-01 18:24:06 +00:00
Dotfiles/Scripts/backup

41 lines
1.1 KiB
Plaintext
Raw Normal View History

2017-03-03 06:14:28 +00:00
MOUNT="/Volumes/Paxilon"
ESC="\033"
RED="$ESC[1;31m"
CYAN="$ESC[1;36m"
CLEAR="$ESC[0m"
CMD="rsync -ahP"
2017-03-03 06:14:28 +00:00
if ! mount | grep "on $MOUNT" > /dev/null; then
echo $RED"Waiting for mount..."$CLEAR
2017-03-03 06:14:28 +00:00
while ! mount | grep "on $MOUNT" > /dev/null; do
sleep 1
done
echo $RED"Done"$CLEAR
2017-03-03 06:14:28 +00:00
fi
echo $CYAN"Copying Screenshots"$CLEAR
$CMD ~/Documents/Screenshots/ $MOUNT/Backups/Screenshots/
2017-03-03 06:14:28 +00:00
echo $CYAN"Copying Projects"$CLEAR
$CMD ~/Projects/ $MOUNT/Backups/Projects/
2017-03-03 06:14:28 +00:00
echo $CYAN"Copying Images"$CLEAR
$CMD ~/Documents/Images/ $MOUNT/Media/Images/
2017-03-03 06:14:28 +00:00
echo $CYAN"Copying School"$CLEAR
$CMD ~/Documents/School/ $MOUNT/Backups/School/
2017-03-03 06:14:28 +00:00
echo $CYAN"Copying Misc"$CLEAR
$CMD ~/Documents/Misc/ $MOUNT/Backups/Misc/
2017-03-03 06:14:28 +00:00
echo $CYAN"Copying Curse"$CLEAR
$CMD ~/Curse/Instances $MOUNT/Backups/Minecraft
2017-03-03 06:14:28 +00:00
echo $CYAN"Copying KSP Downloads"$CLEAR
$CMD ~/Library/Application\ Support/Steam/steamapps/common/Kerbal\ Space\ Program/CKAN/downloads/ $MOUNT/Backups/KSP/Mods/CKAN\ Downloads
$CMD ~/Library/Application\ Support/Steam/steamapps/common/Kerbal\ Space\ Program/GameData/ $MOUNT/Backups/KSP/GameData