~jagtalon/dotfiles

ref: 2e19e420ee59ef8542e0b204078633380755c8d5 dotfiles/.local/bin/tarsnap-backup.sh -rwxr-xr-x 471 bytes
2e19e420Jag Talon Merge remote-tracking branch 'origin/master' into master 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env fish

# List directories to be backed up.
set directories "/mnt/c/Users/jag/Documents" "/mnt/c/Users/jag/Desktop" "/home/jag"

# Prune unnecessary files.
# /usr/bin/tarsnap --list-archives | /usr/local/bin/prunef --keep-hourly 20 --keep-daily 10 --keep-weekly 8 --keep-monthly 12 "Jag-%Y-%m-%d_%H-%M-%S" | xargs --no-run-if-empty -n1 /usr/bin/tarsnap -df

# Start backup.
/usr/bin/tarsnap -v -c -f (uname -n)"-"(date +%Y-%m-%d_%H-%M-%S) \
    $directories