summaryrefslogtreecommitdiff
path: root/buhome
diff options
context:
space:
mode:
authoryuzu-eva <cafebabe@disroot.org>2025-05-08 14:01:37 +0200
committeryuzu-eva <cafebabe@disroot.org>2025-05-08 14:01:37 +0200
commitef7c1605a027b52bbff1b01ea693b60f53fa3a71 (patch)
tree1089334258aefbd459d18cf6968e78f1194739b0 /buhome
initial commit
Diffstat (limited to 'buhome')
-rwxr-xr-xbuhome36
1 files changed, 36 insertions, 0 deletions
diff --git a/buhome b/buhome
new file mode 100755
index 0000000..41d672b
--- /dev/null
+++ b/buhome
@@ -0,0 +1,36 @@
+#!/usr/bin/env bash
+
+backup_file=$(date +%F)-home.tar.gz
+target_dir="/media/hdd/backups/"
+
+tar -zcf $backup_file -C "$HOME" \
+ dev \
+ dl \
+ docs \
+ GDStash \
+ pics \
+ vids \
+ .backup \
+ .config \
+ .gitconfig \
+ .gnupg \
+ .local/bin \
+ .local/share/citra-emu \
+ .local/share/DB \
+ .local/share/dolphin-emu \
+ .local/share/icons \
+ .local/share/jellyfin \
+ .local/share/qBittorrent \
+ .local/share/yuzu \
+ .local/src \
+ .mozilla \
+ .npmrc \
+ .ssh \
+ .urxvt \
+ .vim \
+ .vm \
+ .wg
+
+rsync -aviP --remove-source-files $backup_file $target_dir
+
+ls -ahl $target_dir