diff --git a/src/backend/backup/worker/mod.rs b/src/backend/backup/worker/mod.rs index c433b90..286b488 100644 --- a/src/backend/backup/worker/mod.rs +++ b/src/backend/backup/worker/mod.rs @@ -65,14 +65,14 @@ fn perform_backup(backup: backup::Backup) -> Result<()> { create_dir_all(&tmp)?; let status = Command::new("bash") - .arg(format!("{dir}/helper-scripts/backup_and_restore.sh")) + .arg(format!("{dir}helper-scripts/backup_and_restore.sh")) .arg("backup") .arg("all") .env("MAILCOW_BACKUP_LOCATION", &tmp) .status()?; if !status.success() { - return Err(Error::msg("Failed to create mailcow backup}")); + bail!("Failed to create mailcow backup: {}", status); } add_dir_to_archive(&mut archive, &Path::new(&tmp), "mailcow", options)?;