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.

12 lines
354 B

6 years ago
6 years ago
6 years ago
6 years ago
  1. #!/bin/bash
  2. # Backup destination
  3. backup_dest="/run/media/kevin/pc-backup/backups/nzxt"
  4. exclude_dirs_list="/home/kevin/linux-config/txt/exlude-dirs-backup.txt"
  5. # Labels for backup name
  6. distro="arch"
  7. datetime=$(date "+%m.%d-%H.%M")
  8. backup_file="$backup_dest/$datetime-$distro.tar.gz"
  9. sudo tar -czpvf "$backup_file" --exclude-from="$exclude_dirs_list" /