adding a script for using borg backup.
This commit is contained in:
parent
fcbe6440c7
commit
dc6fc5779c
|
@ -0,0 +1,8 @@
|
|||
#!/bin/bash
|
||||
|
||||
export BORG_REPO='borg@192.168.1.1:/mnt/sda/backup/python'
|
||||
export BORG_PASSPHRASE=Password
|
||||
|
||||
borg create -v --stats ::$(hostusename)_$(date +%Y-%m-%d) /home/user/
|
||||
|
||||
borg prune --prefix $(hostname)_201* --keep-daily=7 --keep-weekly=4 --keep-monthly=12 --keep-yearly=1
|
Reference in New Issue