I think I trusted an AI too much

The backup is made by a cron script to a Synology network storage
I think all files are still on the disk, but the configuration is broken.
Take out one disk as a backup and sync later. Mount the other on another PC
Is it then not possible to move the config from the backup to the server somehow (know it is in a db). Think I have only changed a couple passwords in the time period.
This is the cron script for backup (removed some security related info)
<?php
<?php
include_once($folder."phpmailer/class.phpmailer.php");
function isCli()
{
$sapiname = php_sapi_name();
if((substr($sapiname , 0, 3) == 'cgi') || (substr($sapiname , 0, 3) == 'cli')) // PHP 4 and 5 version
if(empty($_SERVER['REMOTE_ADDR']))
{
return true;
}
return false;
}
function mailoutput($to, $mailbody)
{
$mail = new PHPMailer();
$mail->IsMail();
$mail->SetLanguage("en");
$mail->IsHTML(true);
$mail->FromName = "noreply@beast.dk";
$mail->From = $mail->FromName;
$mail->Subject = "Beastserver backup log";
$mail->WordWrap = 50;
$mail->MsgHTML($mailbody);
$mail->AltBody = strip_tags(preg_replace("/<br>/", "\r\n", $mailbody));
$mail->AddAddress($to);
if(!$mail->Send())
{
die("Mail Error: " . $mail->ErrorInfo);
}
}
$parameters = $_SERVER['argv'];
$mailbody = "<h2>Beastserver backup server log</h2>";
$starttime = time();
$returnstr = shell_exec("signal-event pre-backup");
**** this below is removed for security issues
//$returnstr .= shell_exec("rsync -az -e \"ssh -p xxxx\" /home/e-smith/* admin@x.x.x.x::NetBackup/beastserver/home/e-smith/");
/*
signal-event pre-backup
home/e-smith
etc/e-smith/templates-custom
etc/e-smith/templates-user-custom
etc/ssh
root
etc/sudoers
etc/passwd
etc/shadow
etc/group
etc/gshadow
/etc/dehydrated
etc/samba/secrets.tdb
etc/samba/smbpasswd
signal-event post-backup
*/
**** until here
$returnstr .= shell_exec("signal-event post-backup");
$execmin = (time() - $starttime)/60;
if(strlen($returnstr))
$mailbody .= $returnstr;
else
$mailbody .= "<br>Backup performed to NAS in ".$execmin." minutes";
if(isCli())
{
foreach($parameters as $key => $value)
{
if($key > 0)
mailoutput($value, $mailbody);
}
}
else
{
if(isset($_GET['email']))
mailoutput($_GET['email'], $mailbody);
}
?>