Compare commits

..

3 commits

View file

@ -5,8 +5,11 @@ IFS=$'\n\t'
export BORG_REPO="/media/backup/" export BORG_REPO="/media/backup/"
if [ "$1" = "service" ]; then if [ "${1:-}" = "service" ]; then
rclone sync "${BORG_REPO}" gdrive-backup:hot-repo/ extra_args=()
else else
rclone sync --progress "${BORG_REPO}" gdrive-backup:hot-repo/ extra_args=(--progress)
fi fi
rclone sync "${extra_args[@]}" "${BORG_REPO}" gdrive-backup:hot-repo/
rclone copy "${extra_args[@]}" ~/.keys/ --include '*.kdbx' gdrive-backup:keys/