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
436 B

5 years ago
5 years ago
6 years ago
6 years ago
6 years ago
  1. #!/bin/bash
  2. # Backup destination
  3. case $1 in
  4. nzxt )
  5. backup_dest="/run/media/kevin/backup-hd/nzxt"
  6. ;;
  7. x1 )
  8. backup_dest="/run/media/kevin/laptop-backup"
  9. ;;
  10. esac
  11. exclude_dirs_list="/home/kevin/linux-config/txt/exclude-dirs-backup.txt"
  12. # Labels for backup name
  13. distro="arch"
  14. datetime=$(date "+%m.%d-%H.%M")
  15. backup_file="$backup_dest/$datetime-$distro.tar.gz"
  16. sudo tar -czpvf "$backup_file" --exclude-from="$exclude_dirs_list" /