import backup 2

This commit is contained in:
Valentin 2024-05-31 16:15:13 +02:00
parent 448a173b4f
commit feb4a67d82
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ if [[ "$answer" == "y" ]]; then
rm $backup_archive
backup_directory=$(ls "/home/${username}/${site_name}_export"*)
backup_directory="/home/${username}$(ls \"/home/${username}/\" | grep \"${site_name}_export\")"
db_export=$(ls "${backup_directory}/db"*)
db_password=$(cat /var/www/repositories/cms*/.env | grep DB_PASSWORD | sed "s/[^']*'\([^']*\)'.*/\1/")