Sync the backup to Google Drive every day
This commit is contained in:
parent
2046329111
commit
e32fde2ddb
4 changed files with 30 additions and 0 deletions
9
.local/bin/sync-backup
Executable file
9
.local/bin/sync-backup
Executable file
|
|
@ -0,0 +1,9 @@
|
|||
#! /usr/bin/sh
|
||||
|
||||
export BORG_REPO="/media/backup/"
|
||||
|
||||
if [ "$1" = "service" ]; then
|
||||
rclone sync "${BORG_REPO}" gdrive-backup:hot-repo/
|
||||
else
|
||||
rclone sync --progress "${BORG_REPO}" gdrive-backup:hot-repo/
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue