|
|
@ -18,7 +18,7 @@ export const forgetSingle = (dryRun: boolean, name: string, from: string, to: st
|
|
|
|
flags.push('--dry-run')
|
|
|
|
flags.push('--dry-run')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
const env = getEnvFromBackend(backend)
|
|
|
|
const env = getEnvFromBackend(backend)
|
|
|
|
writer.appendLn(name + to.blue + ' : ' + 'Forgeting old snapshots… ⏳')
|
|
|
|
writer.replaceLn(name + to.blue + ' : ' + 'Forgeting old snapshots… ⏳')
|
|
|
|
const cmd = exec('restic', ['forget', '--path', from, '--prune', ...flags], { env })
|
|
|
|
const cmd = exec('restic', ['forget', '--path', from, '--prune', ...flags], { env })
|
|
|
|
|
|
|
|
|
|
|
|
if (VERBOSE) console.log(cmd.out, cmd.err)
|
|
|
|
if (VERBOSE) console.log(cmd.out, cmd.err)
|
|
|
|