From 4d8e12b52955e03636e58f8fed665e270537bf62 Mon Sep 17 00:00:00 2001 From: Jeffrey Serio Date: Sat, 23 Nov 2024 21:19:18 -0600 Subject: [PATCH] Add quick-backup --- shell/quick-backup | 6 ++++++ shell/sync_to_protondrive | 19 +------------------ 2 files changed, 7 insertions(+), 18 deletions(-) create mode 100644 shell/quick-backup 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