Updated shenanigans backup function

Author Mitja Felicijan <mitja.felicijan@gmail.com> 2023-12-29 09:55:19 +0100
Committer Mitja Felicijan <mitja.felicijan@gmail.com> 2023-12-29 09:55:19 +0100
Commit 79c0ad467d90d268aaa31e8976139bae040d970b (patch)
-rwxr-xr-x shenanigans.sh 7
1 files changed, 4 insertions, 3 deletions
diff --git a/shenanigans.sh b/shenanigans.sh
...
34
alias x='exit'
34
alias x='exit'
35
alias grep='grep --color=always'
35
alias grep='grep --color=always'
36
alias less='less -R'
36
alias less='less -R'
37
alias e='emacs'
  
38
alias gg='lazygit'
37
alias gg='lazygit'
39
alias server='python3 -m http.server 6969'
38
alias server='python3 -m http.server 6969'
40
  
39
  
...
51
export PATH=$HOME/Applications:$PATH
50
export PATH=$HOME/Applications:$PATH
52
export PATH=$HOME/.local/bin:$PATH
51
export PATH=$HOME/.local/bin:$PATH
53
export PATH=$HOME/go/bin:$PATH
52
export PATH=$HOME/go/bin:$PATH
54
  
  
55
export PATH=$HOME/Android/Sdk/platform-tools:$PATH
53
export PATH=$HOME/Android/Sdk/platform-tools:$PATH
56
export PATH=$HOME/Android/Sdk/tools:$PATH
54
export PATH=$HOME/Android/Sdk/tools:$PATH
57
  
55
  
...
80
  
78
  
81
	# Make a copy of dotfiles.
79
	# Make a copy of dotfiles.
82
	cp /home/$USER/.shenanigans.sh shenanigans.sh
80
	cp /home/$USER/.shenanigans.sh shenanigans.sh
83
	cp /home/$USER/.bash_history bash_history
  
84
	cp /home/$USER/.bash_history_infinite bash_history_infinite
81
	cp /home/$USER/.bash_history_infinite bash_history_infinite
85
	cp /home/$USER/.smbcredentials smbcredentials
82
	cp /home/$USER/.smbcredentials smbcredentials
86
	cp /home/$USER/.gitconfig gitconfig
83
	cp /home/$USER/.gitconfig gitconfig
...
108
	rsync -azv \
105
	rsync -azv \
109
		--exclude '.venv/' \
106
		--exclude '.venv/' \
110
		--exclude '.git/' \
107
		--exclude '.git/' \
  
108
		--exclude '.import/' \
  
109
		--exclude '.godot/' \
111
		--exclude 'node_modules/' \
110
		--exclude 'node_modules/' \
112
		--delete \
111
		--delete \
113
		$VHOME/ /media/Void/Backup/$ME/
112
		$VHOME/ /media/Void/Backup/$ME/
...
118
		--delete-removed \
117
		--delete-removed \
119
		--exclude 'node_modules/*' \
118
		--exclude 'node_modules/*' \
120
		--exclude '.git/*' \
119
		--exclude '.git/*' \
  
120
		--exclude '.import/*' \
  
121
		--exclude '.godot/*' \
121
		--exclude '.venv/*' \
122
		--exclude '.venv/*' \
122
		$VHOME/ s3://vault/backup/$ME/
123
		$VHOME/ s3://vault/backup/$ME/
123
  
124
  
...