~jagtalon/dotfiles

ref: 3124bcff29910004014afbeb9d0424a923aaaa97 dotfiles/.local/bin/tarsnap-backup.sh -rwxr-xr-x 471 bytes
3124bcff — Jag Talon xclip: Remove output when checking for clip.exe 10 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