From a69d4c3a6c6e2912bd894b6ab239ce030ae6bf43 Mon Sep 17 00:00:00 2001 From: Allen Herrera Date: Tue, 26 Mar 2024 14:25:05 -0400 Subject: [PATCH] add comment to auto_select_most_recent_backup_for_incremental in mcs_backup_manager.sh --- cmapi/scripts/mcs_backup_manager.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmapi/scripts/mcs_backup_manager.sh b/cmapi/scripts/mcs_backup_manager.sh index 5630cb2a9..bb443adc3 100644 --- a/cmapi/scripts/mcs_backup_manager.sh +++ b/cmapi/scripts/mcs_backup_manager.sh @@ -781,6 +781,10 @@ validation_prechecks_for_backup() fi } +# Used when "--incremental auto_most_recent" passed in during incremental backups +# This function identifies which backup directory is the most recent and sets today=x so that the incremental backup applies to said last full backup +# For LocalStorage: based on ls -td | head -n 1 +# For S3: using the awscli/gsutil, compare the dates of the backup folders restoreS3.job file to find the most recent S3 backup to increment ont top off auto_select_most_recent_backup_for_incremental() { printf " - Searching for most recent backup ...."