Commit d1f5de8d authored by ale's avatar ale

Disable restic local caches

Local caches apparently require an exclusive lock, effectively
preventing concurrency -- it is still to be seen if the repository
lock has the same effect though.
parent ebdd223f
Pipeline #3501 passed with stages
in 1 minute and 59 seconds
...@@ -154,7 +154,7 @@ func resticBackupTags(backup *Backup, ds *Dataset) string { ...@@ -154,7 +154,7 @@ func resticBackupTags(backup *Backup, ds *Dataset) string {
func (r *resticRepository) BackupCmd(backup *Backup, ds *Dataset, sourcePaths []string) string { func (r *resticRepository) BackupCmd(backup *Backup, ds *Dataset, sourcePaths []string) string {
return fmt.Sprintf( return fmt.Sprintf(
"%s backup --cleanup-cache --exclude-caches --one-file-system %s %s", "%s backup --no-cache --exclude-caches --one-file-system %s %s",
r.resticCmd(), r.resticCmd(),
resticBackupTags(backup, ds), resticBackupTags(backup, ds),
strings.Join(sourcePaths, " "), strings.Join(sourcePaths, " "),
...@@ -163,7 +163,7 @@ func (r *resticRepository) BackupCmd(backup *Backup, ds *Dataset, sourcePaths [] ...@@ -163,7 +163,7 @@ func (r *resticRepository) BackupCmd(backup *Backup, ds *Dataset, sourcePaths []
func (r *resticRepository) getSnapshotID(ctx context.Context, rctx RuntimeContext, backup *Backup, ds *Dataset) (string, error) { func (r *resticRepository) getSnapshotID(ctx context.Context, rctx RuntimeContext, backup *Backup, ds *Dataset) (string, error) {
data, err := rctx.Shell().Output(ctx, fmt.Sprintf( data, err := rctx.Shell().Output(ctx, fmt.Sprintf(
"%s snapshots --json %s", "%s snapshots --no-cache --no-lock --json %s",
r.resticCmd(), r.resticCmd(),
resticBackupTags(backup, ds), resticBackupTags(backup, ds),
)) ))
...@@ -209,7 +209,7 @@ func datasetStdinPath(ds *Dataset) string { ...@@ -209,7 +209,7 @@ func datasetStdinPath(ds *Dataset) string {
func (r *resticRepository) BackupStreamCmd(backup *Backup, ds *Dataset) string { func (r *resticRepository) BackupStreamCmd(backup *Backup, ds *Dataset) string {
fakePath := datasetStdinPath(ds) fakePath := datasetStdinPath(ds)
return fmt.Sprintf( return fmt.Sprintf(
"%s backup --cleanup-cache --exclude-caches %s --stdin --stdin-filename %s", "%s backup --no-cache %s --stdin --stdin-filename %s",
r.resticCmd(), r.resticCmd(),
resticBackupTags(backup, ds), resticBackupTags(backup, ds),
fakePath, fakePath,
......
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