mirror of
https://github.com/drewcassidy/dotfiles
synced 2024-09-01 18:24:06 +00:00
Add Backups script
This commit is contained in:
parent
f64fda63b1
commit
c71a66a095
32
Scripts/backup
Executable file
32
Scripts/backup
Executable file
@ -0,0 +1,32 @@
|
||||
MOUNT="/Volumes/Paxilon"
|
||||
if ! mount | grep "on $MOUNT" > /dev/null; then
|
||||
echo "\033[0;31m\033[1mWaiting for mount...\033[0m"
|
||||
|
||||
while ! mount | grep "on $MOUNT" > /dev/null; do
|
||||
sleep 1
|
||||
done
|
||||
|
||||
echo "\033[0;31m\033[1mDone\033[0m"
|
||||
fi
|
||||
|
||||
echo "\033[0;36m\033[1mCopying Screenshots\033[0m"
|
||||
rsync -avz ~/Documents/Screenshots/ $MOUNT/Backups/Screenshots/
|
||||
|
||||
echo "\033[0;36m\033[1mCopying Projects\033[0m"
|
||||
rsync -avz ~/Projects/ $MOUNT/Backups/Projects/
|
||||
|
||||
echo "\033[0;36m\033[1mCopying Images\033[0m"
|
||||
rsync -avz ~/Documents/Images/ $MOUNT/Media/Images/
|
||||
|
||||
echo "\033[0;36m\033[1mCopying School\033[0m"
|
||||
rsync -avz ~/Documents/School/ $MOUNT/Backups/School/
|
||||
|
||||
echo "\033[0;36m\033[1mCopying Misc\033[0m"
|
||||
rsync -avz ~/Documents/Misc/ $MOUNT/Backups/Misc/
|
||||
|
||||
echo "\033[0;36m\033[1mCopying Curse\033[0m"
|
||||
rsync -avz ~/Curse/Instances $MOUNT/Backups/Minecraft
|
||||
|
||||
echo "\033[0;36m\033[1mCopying KSP Downloads\033[0m"
|
||||
rsync -avz ~/Library/Application\ Support/Steam/steamapps/common/Kerbal\ Space\ Program/CKAN/downloads/ $MOUNT/Backups/KSP/Mods/CKAN\ Downloads
|
||||
rsync -avz ~/Library/Application\ Support/Steam/steamapps/common/Kerbal\ Space\ Program/GameData/ $MOUNT/Backups/KSP/GameData
|
Loading…
Reference in New Issue
Block a user