blob: e3f5bac9e7a3845403c55386df184976506a92e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/bin/sh
ts="$(date +%Y-%m-%dT%H:%M:%S)"
echo "Backing up /mnt/soile"
./run-borg willikins /mnt/backups/borg create --stats ::"soile-$ts)" /mnt/soile/
echo "Backing up /mnt/media"
./run-borg willikins /mnt/backups/borg create --stats ::"media-$ts)" /mnt/media/
echo "Backing up /mnt/liw-backups"
./run-borg willikins /mnt/backups/borg create --stats ::"liw-$ts)" /mnt/liw-backups/
echo "Pruning"
./run-borg willikins /mnt/backups/borg prune --keep-with 100d
echo "Backup finished"
|