-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbackup-config.sh
More file actions
executable file
·30 lines (25 loc) · 922 Bytes
/
backup-config.sh
File metadata and controls
executable file
·30 lines (25 loc) · 922 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/bin/env bash
backup_dir=~/GoogleDrive/Personal/Configuration
declare -a rsync_dirs=(
"Library/Application Support/Hazel"
"Library/Application Support/IntelliJIdea2019.1"
"Library/Application Support/iTerm2"
"Library/Application Support/Launchbar"
"Library/Application Support/Keyboard Maestro"
"Library/Preferences/IntelliJIdea2019.1"
)
for dir in "${rsync_dirs[@]}"
do
rsync -a --delete ~/"$dir/" $backup_dir/Home/"$dir"
done
declare -a pref_files=(
at.obdev.LaunchBar.*
com.jetbrains.intellij.plist
jetbrains*
com.googlecode.iterm2.*
com.noodlesoft.Hazel.plist
)
for pref_file in "${pref_files[@]}"
do
cp ~/Library/Preferences/$pref_file $backup_dir/Home/Library/Preferences
done