From bd68b52c4a19de3098740fc39eb34c0d3631fdd6 Mon Sep 17 00:00:00 2001 From: Ruben Date: Sat, 4 Oct 2025 14:02:13 -0500 Subject: [PATCH] cleanup and fixes for neptunium backup and vacuum steps --- helperbot | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/helperbot b/helperbot index 31ab3d6..623b2c4 100755 --- a/helperbot +++ b/helperbot @@ -471,7 +471,7 @@ function system_backup { # configs, extra cp $backup_local_folder/vaultwarden/compose.yaml $backup_working_directory/vaultwarden # ============================================================================= - # mailserver - TEMP: eventually we'll migrate to mailu and this will need to be changed!!!!!! + # mailserver echo "${blue}Pulling in mailserver...${normal}" mkdir -p $backup_working_directory/mailserver/docker-data # data - once again - no native way to make a backup @@ -529,7 +529,6 @@ function system_backup { mkdir -p $backup_working_directory/system/var/www/mta-sts/.well-known/ cp -r /etc/caddy/* $backup_working_directory/system/etc/caddy/ cp -r /etc/secrets/* $backup_working_directory/system/etc/secrets/ - cp /var/www/mta-sts/.well-known/mta-sts.txt $backup_working_directory/system/var/www/mta-sts/.well-known # ============================================================================= # archive and compress everything echo "${blue}Compressing everything into one archive...${normal}" @@ -544,14 +543,6 @@ function system_backup { # cleanup echo "${blue}Cleaning up...${normal}" rm -fr ${backup_working_directory}/${backup_output_tar}.zst $backup_working_directory/* - elif [ "$synth_current_system" = "cerium" ]; then # cerium - postgres_vacuum_self - elif [ "$synth_current_system" = "synthnix" ]; then # synthnix - # as synthnix doesn't really include much and serves as a place for members - # we just need to back up the home directory here - # - # WIP - echo "wip" fi echo "${green}System backup finished! beep!~${normal}" } @@ -574,10 +565,6 @@ function system_vacuum { postgres_vacuum postgres-db-1 askjs ${ASKJS_POSTGRES_PASSWORD} postgres_vacuum postgres-db-1 freshrss ${FRESHRSS_POSTGRES_PASSWORD} postgres_vacuum postgres-db-1 zitadel ${ZITADEL_POSTGRES_PASSWORD} - elif [ "$synth_current_system" = "cerium" ]; then # cerium - echo "${blue}vacuum:${normal} ${green}${synth_current_system}${normal} doesn't have anything to vacuum." - elif [ "$synth_current_system" = "synthnix" ]; then # synthnix - echo "${blue}vacuum:${normal} ${green}${synth_current_system}${normal} doesn't have anything to vacuum." fi # unload secrets - they already should be, but we want to ensure they are unset $(grep -v '^#' /etc/secrets/postgres.env | sed -E 's/(.*)=.*/\1/' | xargs)