diff --git a/app/server/utils/restic/commands/tag-snapshots.ts b/app/server/utils/restic/commands/tag-snapshots.ts index d2e25fb7..b5e4bfcd 100644 --- a/app/server/utils/restic/commands/tag-snapshots.ts +++ b/app/server/utils/restic/commands/tag-snapshots.ts @@ -13,13 +13,13 @@ export const tagSnapshots = async ( tags: { add?: string[]; remove?: string[]; set?: string[] }, organizationId: string, ) => { - const repoUrl = buildRepoUrl(config); - const env = await buildEnv(config, organizationId); - if (snapshotIds.length === 0) { throw new Error("No snapshot IDs provided for tagging."); } + const repoUrl = buildRepoUrl(config); + const env = await buildEnv(config, organizationId); + const args: string[] = ["--repo", repoUrl, "tag", ...snapshotIds]; if (tags.add) {