Compare commits
3 commits
0e1586e6f2
...
93baa452d5
| Author | SHA1 | Date | |
|---|---|---|---|
| 93baa452d5 | |||
| a878cf7683 | |||
| 505e36e868 |
1 changed files with 6 additions and 3 deletions
|
|
@ -5,8 +5,11 @@ IFS=$'\n\t'
|
|||
|
||||
export BORG_REPO="/media/backup/"
|
||||
|
||||
if [ "$1" = "service" ]; then
|
||||
rclone sync "${BORG_REPO}" gdrive-backup:hot-repo/
|
||||
if [ "${1:-}" = "service" ]; then
|
||||
extra_args=()
|
||||
else
|
||||
rclone sync --progress "${BORG_REPO}" gdrive-backup:hot-repo/
|
||||
extra_args=(--progress)
|
||||
fi
|
||||
|
||||
rclone sync "${extra_args[@]}" "${BORG_REPO}" gdrive-backup:hot-repo/
|
||||
rclone copy "${extra_args[@]}" ~/.keys/ --include '*.kdbx' gdrive-backup:keys/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue