Compare commits
No commits in common. "93baa452d5b840375b248406a6b6f815c6fb7f7d" and "0e1586e6f28469eb356d1c4c29b89b3ce546a3bc" have entirely different histories.
93baa452d5
...
0e1586e6f2
1 changed files with 3 additions and 6 deletions
|
|
@ -5,11 +5,8 @@ IFS=$'\n\t'
|
|||
|
||||
export BORG_REPO="/media/backup/"
|
||||
|
||||
if [ "${1:-}" = "service" ]; then
|
||||
extra_args=()
|
||||
if [ "$1" = "service" ]; then
|
||||
rclone sync "${BORG_REPO}" gdrive-backup:hot-repo/
|
||||
else
|
||||
extra_args=(--progress)
|
||||
rclone sync --progress "${BORG_REPO}" gdrive-backup:hot-repo/
|
||||
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