"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
serve restic: don't serve via http if serving via --stdio
Nick Craig-Wood823d89af9a56
diff --git a/cmd/serve/restic/restic.go b/cmd/serve/restic/restic.goindex 0752d1ca5..fbdc947e1 100644--- a/cmd/serve/restic/restic.go+++ b/cmd/serve/restic/restic.go@@ -155,7 +155,6 @@ with a path of ` + "`/<username>/`" + `.if err != nil {return err}- fs.Logf(s.f, "Serving restic REST API on %s", s.URLs())if s.opt.Stdio {if terminal.IsTerminal(int(os.Stdout.Fd())) {return errors.New("refusing to run HTTP2 server directly on a terminal, please let restic start rclone")@@ -173,6 +172,7 @@ with a path of ` + "`/<username>/`" + `.httpSrv.ServeConn(conn, opts)return nil}+ fs.Logf(s.f, "Serving restic REST API on %s", s.URLs())s.Wait()return nil})@@ -242,6 +242,10 @@ func newServer(ctx context.Context, f fs.Fs, opt *Options) (s *server, err errorcache: newCache(opt.CacheObjects),opt: *opt,}+ // Don't bind any HTTP listeners if running with --stdio+ if opt.Stdio {+ opt.HTTP.ListenAddr = nil+ }s.Server, err = libhttp.NewServer(ctx,libhttp.WithConfig(opt.HTTP),libhttp.WithAuth(opt.Auth),