mirror of
https://github.com/restic/restic.git
synced 2025-08-12 19:47:52 +00:00
Add extra options to rclone
For details see https://github.com/restic/restic/pull/1657#issuecomment-377707486
This commit is contained in:
@@ -108,7 +108,9 @@ func New(cfg Config) (*Backend, error) {
|
||||
|
||||
args = append(args, a...)
|
||||
} else {
|
||||
args = append(args, "serve", "restic", "--stdio")
|
||||
args = append(args,
|
||||
"serve", "restic", "--stdio",
|
||||
"--b2-hard-delete", "--drive-use-trash=false")
|
||||
}
|
||||
|
||||
// finally, add the remote
|
||||
|
@@ -10,7 +10,7 @@ import (
|
||||
// Config contains all configuration necessary to start rclone.
|
||||
type Config struct {
|
||||
Program string `option:"program" help:"path to rclone (default: rclone)"`
|
||||
Args string `option:"args" help:"arguments for running rclone (default: serve restic --stdio)"`
|
||||
Args string `option:"args" help:"arguments for running rclone (default: serve restic --stdio --b2-hard-delete --drive-use-trash=false)"`
|
||||
Remote string
|
||||
Connections uint `option:"connections" help:"set a limit for the number of concurrent connections (default: 5)"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user