aboutsummaryrefslogtreecommitdiff
path: root/shenanigans.sh
diff options
context:
space:
mode:
Diffstat (limited to 'shenanigans.sh')
-rwxr-xr-xshenanigans.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/shenanigans.sh b/shenanigans.sh
index 4833bd2..d0a1cf4 100755
--- a/shenanigans.sh
+++ b/shenanigans.sh
@@ -42,6 +42,7 @@ alias server='python3 -m http.server 6969'
42alias p='cd ~/Vault/projects' 42alias p='cd ~/Vault/projects'
43alias j='cd ~/Junk/current' 43alias j='cd ~/Junk/current'
44alias d='cd ~/Downloads' 44alias d='cd ~/Downloads'
45alias s='cd ~/Sandbox'
45 46
46# Additional path settings. 47# Additional path settings.
47 48
@@ -64,6 +65,7 @@ if [[ $- =~ .i. ]]; then bind '"\C-h": "\C-a hstr -- \C-j"'; fi
64# Useful function. Much wow! 65# Useful function. Much wow!
65 66
66backup() { 67backup() {
68 CWD=$(pwd)
67 VHOME=/home/$USER/Vault 69 VHOME=/home/$USER/Vault
68 ME=$(whoami)@$(hostname) 70 ME=$(whoami)@$(hostname)
69 71
@@ -87,6 +89,9 @@ backup() {
87 dconf dump /com/gexperts/Tilix/ > tilix.dconf 89 dconf dump /com/gexperts/Tilix/ > tilix.dconf
88 # dconf load /com/gexperts/Tilix/ < tilix.dconf 90 # dconf load /com/gexperts/Tilix/ < tilix.dconf
89 91
92 find /home/$USER/Videos -type f -name "*.webm" -exec cp {} $VHOME/videos/ \;
93 find /home/$USER/Pictures -type f -name "*.png" -exec cp {} $VHOME/pictures/ \;
94
90 # Sync with NAS. 95 # Sync with NAS.
91 rsync -azv \ 96 rsync -azv \
92 --exclude '.venv/' \ 97 --exclude '.venv/' \
@@ -94,9 +99,13 @@ backup() {
94 --exclude '.import/' \ 99 --exclude '.import/' \
95 --exclude '.godot/' \ 100 --exclude '.godot/' \
96 --exclude 'node_modules/' \ 101 --exclude 'node_modules/' \
102 --exclude 'digg-v5/' \
97 --delete \ 103 --delete \
98 $VHOME/ /media/Void/Backup/$ME/ 104 $VHOME/ /media/Void/Backup/$ME/
99 105
100 # Add to log file. 106 # Add to log file.
101 echo `date +"%D %T"` >> ~/.vault.log 107 echo `date +"%D %T"` >> ~/.vault.log
108
109 # Return back to original directory
110 cd $CWD
102} 111}