fix(scheduled_tasks): get wal-g backups bucket from env

This commit is contained in:
alyssa 2025-12-27 02:44:39 -05:00
parent 8401c464c1
commit 26af2df720
2 changed files with 11 additions and 1 deletions

View file

@ -76,7 +76,10 @@ async fn update_basebackup_ts(repo: String) -> anyhow::Result<()> {
env.insert(
"WALG_S3_PREFIX".to_string(),
format!("s3://pluralkit-backups/{repo}/"),
format!(
"s3://{}/{repo}/",
libpk::config.scheduled_tasks().walg_s3_bucket
),
);
let output = Command::new("wal-g")