diff --git a/shell/check_repl_status b/.archived/shell/check_repl_status similarity index 100% rename from shell/check_repl_status rename to .archived/shell/check_repl_status diff --git a/shell/backup_docker_volumes b/shell/backup_docker_volumes new file mode 100755 index 0000000..29b3915 --- /dev/null +++ b/shell/backup_docker_volumes @@ -0,0 +1,29 @@ +#!/usr/bin/env bash + +set -euo pipefail + +if ! test -f /usr/local/bin/vackup; then + echo "You need the vackup script from https://github.com/BretFisher/docker-vackup" + exit 1 +fi + +BACKUP_DIR="${HOME}/docker_volume_backups" +DATE=$(date '+%Y-%m-%d_%H%M%S') +KEEP=7 + +volumes=( + "freshrss_data" + "freshrss_db" + "freshrss_extensions" + "qbittorrent-docker_qbittorrent-config" + "shaarli_shaarli-cache" + "shaarli_shaarli-data" +) + +for vol in "${volumes[@]}"; do + /usr/local/bin/vackup export "$vol" "${BACKUP_DIR}/${vol}-${DATE}.tar.gz" +done + +find "$BACKUP_DIR" -maxdepth 1 -mtime +"$KEEP" -type f -delete + +exit 0 diff --git a/shell/quick-backup b/shell/quick-backup deleted file mode 100755 index 18b037f..0000000 --- a/shell/quick-backup +++ /dev/null @@ -1,6 +0,0 @@ -#!/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 deleted file mode 100755 index 0215d3a..0000000 --- a/shell/sync_to_protondrive +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash - -set -euo pipefail - -rclone sync --transfers 8 -P -u -c --ignore-existing /home/jas/ownCloud/ protondrive:/ - -exit 0