From d0df60d5e15b245f5a85862e8eefd29928378e1c Mon Sep 17 00:00:00 2001
From: Joel Grunbaum <joelgrun@gmail.com>
Date: Mon, 21 Sep 2020 12:33:11 +0000
Subject: [PATCH] Changed number of old versions to keep
---
backup.sh | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/backup.sh b/backup.sh
index 13d1dc8..5cbe8b5 100755
--- a/backup.sh
+++ b/backup.sh
@@ -2,8 +2,8 @@
BACKUP_DIR="/backup/work/"
FILES_DIR="/home/joel/OneDrive/"
-RCLONE_BACKUP=("OneDrive_Personal" "GoogleDrive" "Mega" "unimelb" "sout" "pCloud" "gdrive_unimelb")
-RCLONE_FILES=("sout" "Mega" "unimelb" "gdrive_unimelb")
+RCLONE_BACKUP=("GoogleDrive" "Mega" "unimelb" "pCloud" "gdrive_unimelb" "NC_home" "NextCloud")
+RCLONE_FILES=("Mega" "unimelb" "gdrive_unimelb" "NC_home")
function sync() {
case $1 in
@@ -67,9 +67,9 @@
fi
borg prune \
- --keep-hourly 24 \
- --keep-daily 7 \
- --keep-monthly 4 \
+ --keep-hourly 12 \
+ --keep-daily 8 \
+ --keep-monthly 2 \
$BACKUP_DIR
LAST="$(borg list $BACKUP_DIR | tail -n2 | cut -d' ' -f1)"
--
Gitblit v1.10.0