Dotfiles for my tiling window manager + terminal workflow.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

19 lines
433 B

#!/bin/bash
# Backup destination
case $1 in
nzxt )
backup_dest="/run/media/kevin/nzxt-backup/"
;;
x1 )
backup_dest="/run/media/kevin/laptop-backup"
;;
esac
exclude_dirs_list="/home/kevin/linux-config/txt/exlude-dirs-backup.txt"
# Labels for backup name
distro="arch"
datetime=$(date "+%m.%d-%H.%M")
backup_file="$backup_dest/$datetime-$distro.tar.gz"
sudo tar -czpvf "$backup_file" --exclude-from="$exclude_dirs_list" /