forked from nevesnunes/env
-
Notifications
You must be signed in to change notification settings - Fork 0
/
backup-predefined.sh
executable file
·146 lines (141 loc) · 4.59 KB
/
backup-predefined.sh
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
#!/bin/sh
if [ "$(id -u)" -eq 0 ]; then
USER=$(logname)
if ! [ -d "/home/$USER" ]; then
echo "[FAIL] No home directory for \$USER=$USER."
exit 1
fi
fi
rsync -uva --relative --usermap=:"$USER" --groupmap=:"$USER" \
--copy-links \
--exclude='code/snippets/+' \
--exclude='.git' \
--exclude='node_modules' \
--filter='dir-merge,- .gitignore' \
/home/"$USER"/./code/cheats \
/home/"$USER"/./code/logbooks \
/home/"$USER"/./code/snippets \
./common/
rsync -uva --relative --usermap=:"$USER" --groupmap=:"$USER" \
--copy-links \
--exclude='.config/ranger/history' \
--exclude='.dosbox/capture' \
--exclude='.local/share/applications/wine*' \
--exclude='.tmux/resurrect' \
--exclude='.vim/bundle*' \
--exclude='.vim/.netrwhist' \
--exclude='.vim/.VimballRecord' \
--exclude='bookmarks' \
--exclude='gimpswap.*' \
--exclude='.git' \
--exclude='node_modules' \
--filter='dir-merge,- .gitignore' \
/home/"$USER"/./.bashrc* \
/home/"$USER"/./.bash_profile \
/home/"$USER"/./.bash_prompt \
/home/"$USER"/./.clang-format \
/home/"$USER"/./.ctags \
/home/"$USER"/./.dircolors \
/home/"$USER"/./.dosbox* \
/home/"$USER"/./.eslintrc.js \
/home/"$USER"/./.fluxbox \
/home/"$USER"/./.gdbinit* \
/home/"$USER"/./.gemrc \
/home/"$USER"/./.gimp-2.8 \
/home/"$USER"/./.gitconfig \
/home/"$USER"/./.gitignore_global \
/home/"$USER"/./.gtkrc-2.0 \
/home/"$USER"/./.lesskey \
/home/"$USER"/./.less_termcap \
/home/"$USER"/./.icewm \
/home/"$USER"/./.infokey \
/home/"$USER"/./.inputrc \
/home/"$USER"/./.jshintrc \
/home/"$USER"/./.lscolors \
/home/"$USER"/./.milkytracker_config \
/home/"$USER"/./.mostrc \
/home/"$USER"/./.npmrc \
/home/"$USER"/./.pdbrc \
/home/"$USER"/./.pentadactylrc \
/home/"$USER"/./.profile \
/home/"$USER"/./.pryrc \
/home/"$USER"/./.pwn.conf \
/home/"$USER"/./.pylintrc \
/home/"$USER"/./.rlwrap \
/home/"$USER"/./.rubocop.yml \
/home/"$USER"/./.screenlayout \
/home/"$USER"/./.shrc \
/home/"$USER"/./.stalonetrayrc \
/home/"$USER"/./.tmux* \
/home/"$USER"/./.taskrc \
/home/"$USER"/./.tern-config \
/home/"$USER"/./.urxvt \
/home/"$USER"/./.vim \
/home/"$USER"/./.vimrc \
/home/"$USER"/./.vimperator/colors \
/home/"$USER"/./.vimperatorrc \
/home/"$USER"/./.xbindkeysrc \
/home/"$USER"/./.xkb \
/home/"$USER"/./.Xresources* \
/home/"$USER"/./.zshrc \
/home/"$USER"/./.chocolate-doom/*.cfg \
/home/"$USER"/./.config/awesome \
/home/"$USER"/./.config/compton.conf \
/home/"$USER"/./.config/darktable \
/home/"$USER"/./.config/dconf \
/home/"$USER"/./.config/deadbeef/config \
/home/"$USER"/./.config/devilspie2 \
/home/"$USER"/./.config/dunst \
/home/"$USER"/./.config/flake8 \
/home/"$USER"/./.config/fontconfig \
/home/"$USER"/./.config/gtkrc-2.0 \
/home/"$USER"/./.config/gtk-3.0 \
/home/"$USER"/./.config/htop \
/home/"$USER"/./.config/i3 \
/home/"$USER"/./.config/mimeapps.list \
/home/"$USER"/./.config/mpv \
/home/"$USER"/./.config/nautilus \
/home/"$USER"/./.config/openbox \
/home/"$USER"/./.config/systemd \
/home/"$USER"/./.config/pcmanfm \
/home/"$USER"/./.config/pep8 \
/home/"$USER"/./.config/pip \
/home/"$USER"/./.config/pycodestyle \
/home/"$USER"/./.config/pythonrc \
/home/"$USER"/./.config/qt5ct \
/home/"$USER"/./.config/ranger \
/home/"$USER"/./.config/retroarch/*.cfg \
/home/"$USER"/./.config/spacefm \
/home/"$USER"/./.config/switchlayout \
/home/"$USER"/./.config/sxiv \
/home/"$USER"/./.config/tint2 \
/home/"$USER"/./.config/Thunar \
/home/"$USER"/./.config/Trolltech.conf \
/home/"$USER"/./.config/uf \
/home/"$USER"/./.config/viewnior \
/home/"$USER"/./.config/vifm \
/home/"$USER"/./.config/xfce4 \
/home/"$USER"/./.config/yamllint \
/home/"$USER"/./.config/zathura \
/home/"$USER"/./.config/zdoom/*.ini \
/home/"$USER"/./.FBReader/ui.xml \
/home/"$USER"/./.local/share/applications \
/home/"$USER"/./.local/share/completions \
/home/"$USER"/./.local/share/crispy-doom/*.cfg \
/home/"$USER"/./.local/share/file-manager \
/home/"$USER"/./.local/share/functions \
/home/"$USER"/./.local/share/icons/hicolor \
/home/"$USER"/./.local/share/icons/Uhita \
/home/"$USER"/./.local/share/nautilus \
/home/"$USER"/./.local/share/terminfo \
/home/"$USER"/./.local/share/themes \
/home/"$USER"/./.local/share/w3m.conf \
/home/"$USER"/./.local/share/Xresources \
/home/"$USER"/./.prboom-plus/prboom-plus.cfg \
/home/"$USER"/./.pulse/presets \
/home/"$USER"/./.slade3/*.cfg \
/home/"$USER"/./.ssh/config \
/home/"$USER"/./.w3m/keymap \
/home/"$USER"/./bin/*.sh \
/home/"$USER"/./bin/functions \
./linux/