diff --git a/shell/quick-backup b/shell/quick-backup new file mode 100644 index 0000000..18b037f --- /dev/null +++ b/shell/quick-backup @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +if ! kbackup --verbose --autobg /home/jas/ownCloud/documents/quickbackup.kbp; then + echo "Error running kbackup" + exit 1 +fi diff --git a/shell/sync_to_protondrive b/shell/sync_to_protondrive index 5cd1071..0215d3a 100755 --- a/shell/sync_to_protondrive +++ b/shell/sync_to_protondrive @@ -2,23 +2,6 @@ set -euo pipefail -STAGING_DIR="/home/jas/protonshare" -SHARE_DIRS=( - /home/jas/calibre-library - /home/jas/documents - /home/jas/ebooks - /home/jas/org - /home/jas/org-roam - /home/jas/pictures -) - -rm -rf "${STAGING_DIR}" -mkdir -p "${STAGING_DIR}" - -for dir in "${SHARE_DIRS[@]}"; do - cp -rfv "$dir" "${STAGING_DIR}/" -done - -rclone sync --transfers 8 -P -u -c --ignore-existing "${STAGING_DIR:?}/" protondrive:/ +rclone sync --transfers 8 -P -u -c --ignore-existing /home/jas/ownCloud/ protondrive:/ exit 0