Commit c335bf2c authored by ale's avatar ale
Browse files

Use backup --force with --stdin

Avoids an expensive lookup of the previous snapshot.
parent 6bcbc560
Pipeline #3568 passed with stages
in 2 minutes
......@@ -209,7 +209,8 @@ func datasetStdinPath(ds *Dataset) string {
func (r *resticRepository) BackupStreamCmd(backup *Backup, ds *Dataset) string {
fakePath := datasetStdinPath(ds)
return fmt.Sprintf(
"%s backup --no-cache %s --stdin --stdin-filename %s",
// The --force prevents restic from trying to find a previous snapshot.
"%s backup --no-cache %s --force --stdin --stdin-filename %s",
resticBackupTags(backup, ds),
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment