1
0
Fork 0

Create borg.sh

This commit is contained in:
Robert Schade 2017-12-07 17:50:26 +01:00 committed by GitHub
parent 565c61a0ad
commit 0d64999cf8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

9
borg.sh Normal file
View file

@ -0,0 +1,9 @@
#!/data/data/com.termux/files/usr/bin/bash
t=`date +%d_%m_%Y`
export BORG_UNKNOWN_UNENCRYPTED_REPO_ACCESS_IS_OK=yes
export BORG_RELOCATED_REPO_ACCESS_IS_OK=yes
host=angler
dirs="/ /system /vendor /cache /persist /firmware /storage /data"
export BORG_RSH=borg_ssh_wrapper
source /data/data/com.termux/files/home/borgbackup_on_android/borg-env/bin/activate
borg create -C lz4 -p -v --stats --one-file-system backup:/backup/borg/$host::$t $dirs # 2> ~/borg_backup_${t}.err