Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add some bin scripts, remove some scripts, update some scripts.
- Loading branch information
Showing
6 changed files
with
82 additions
and
196 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,39 @@ | |||
#!/bin/sh | |||
IFS=$'\n' | |||
|
|||
# Copies a few key files to a mounted partition. | |||
# | |||
# I use Time Machine for backups, but I also wanted to build out an | |||
# offsite backup with my critical nonreplaceable data (photos, documents, | |||
# etc). Since it's mobile, encryption is a plus (which Time Machine | |||
# doesn't easily do). I create an encrypted sparsebundle on a tiny USB | |||
# drive and do it to it. | |||
|
|||
|
|||
# Your sparsebundle. I named mine "fuckplanets" because really, fuck planets. | |||
sparsebundle="/Volumes/fuckplanets/backup.sparsebundle" | |||
|
|||
# Your destination. My sparsebundle mounts to "backup". | |||
backup_location="/Volumes/backup" | |||
|
|||
# Directories to backup. Recursive, implied home (~) location. | |||
directories=( | |||
Code | |||
Documents | |||
"Library/Application Support/Adium 2.0" | |||
Movies | |||
Music | |||
Pictures | |||
) | |||
|
|||
|
|||
|
|||
hdiutil attach -noverify $sparsebundle | |||
|
|||
for directory in ${directories[@]} | |||
do | |||
rsync -avh --progress --delete ~/$directory $backup_location | |||
done | |||
|
|||
hdiutil detach $backup_location | |||
diskutil eject fuckplanets |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,15 @@ | |||
#!/bin/sh | |||
# | |||
# dot | |||
# | |||
# `dot` handles installation, updates, things like that. Run it periodically | |||
# to make sure you're on the latest and greatest. | |||
|
|||
# Set OS X defaults | |||
$ZSH/osx/set-defaults.sh | |||
|
|||
# Upgrade homebrew | |||
brew update | |||
|
|||
# Install homebrew packages | |||
$ZSH/homebrew/install.sh 2>&1 |
This file contains 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
This file contains 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