cleanup and fixes for neptunium backup and vacuum steps
This commit is contained in:
parent
2257e9ee6f
commit
bd68b52c4a
1 changed files with 1 additions and 14 deletions
15
helperbot
15
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue