From e9b074594be5b658093f23c4dfe6489c5205df55 Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Mon, 3 May 2021 16:00:25 +0200 Subject: [PATCH] Add backup alias --- home/.config/sh/aliases | 1 + 1 file changed, 1 insertion(+) diff --git a/home/.config/sh/aliases b/home/.config/sh/aliases index 44685f4..a18e3c6 100755 --- a/home/.config/sh/aliases +++ b/home/.config/sh/aliases @@ -138,6 +138,7 @@ alias swapout='sudo swapoff -a; sudo swapon -a' # Reset swap (move everything to alias mount-ram='mount -t tmpfs tmpfs' # Mount RAM disk for fast filesystem alias upload-journal='sudo journalctl -b -1 | curl -F "f:1=<-" ix.io' # Upload journalctl from last boot to ix.io alias sv='systemctl' +alias backup="rsync -avHAXS --delete --filter='dir-merge /.rsync-filter'" # Make full rsync backup, respecting .rsync-filter files for exclusions # Processes alias psmem='ps auxf | sort -nr -k 4' # Top memory eaters