You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow standard copy in addition to the "special case"
resticprofile implements a "special case" for the copy command, which
does not use the "from-"-prefix and reverses the copy direction. With this
change the standard direction is used when the "from" prefix is explicitly
used.
Copy file name to clipboardExpand all lines: config/profile.go
+68-35Lines changed: 68 additions & 35 deletions
Original file line number
Diff line number
Diff line change
@@ -345,71 +345,102 @@ type CopySection struct {
345
345
RunShellCommandsSection`mapstructure:",squash"`
346
346
Initializebool`mapstructure:"initialize" description:"Initialize the secondary repository if missing"`
347
347
InitializeCopyChunkerParams maybe.Bool`mapstructure:"initialize-copy-chunker-params" default:"true" description:"Copy chunker parameters when initializing the secondary repository"`
348
-
RepositoryConfidentialValue`mapstructure:"repository" description:"Destination repository to copy snapshots to"`
349
-
RepositoryFilestring`mapstructure:"repository-file" description:"File from which to read the destination repository location to copy snapshots to"`
350
-
PasswordFilestring`mapstructure:"password-file" description:"File to read the destination repository password from"`
351
-
PasswordCommandstring`mapstructure:"password-command" description:"Shell command to obtain the destination repository password from"`
352
-
KeyHintstring`mapstructure:"key-hint" description:"Key ID of key to try decrypting the destination repository first"`
348
+
FromPasswordFilestring`mapstructure:"from-password-file" description:"File to read the source repository password from"`
349
+
FromPasswordCommandstring`mapstructure:"from-password-command" description:"Shell command to obtain the source repository password from"`
350
+
FromRepositoryConfidentialValue`mapstructure:"from-repository" description:"Source repository to copy snapshots to"`
351
+
FromRepositoryFilestring`mapstructure:"from-repository-file" description:"File from which to read the source repository location to copy snapshots to"`
352
+
FromKeyHintstring`mapstructure:"from-key-hint" description:"Key ID of key to try decrypting the source repository first"`
353
+
ToPasswordFilestring`mapstructure:"password-file" description:"File to read the destination repository password from"`
354
+
ToPasswordCommandstring`mapstructure:"password-command" description:"Shell command to obtain the destination repository password from"`
355
+
ToRepositoryConfidentialValue`mapstructure:"repository" description:"Destination repository to copy snapshots to"`
356
+
ToRepositoryFilestring`mapstructure:"repository-file" description:"File from which to read the destination repository location to copy snapshots to"`
357
+
ToKeyHintstring`mapstructure:"key-hint" description:"Key ID of key to try decrypting the destination repository first"`
353
358
Snapshots []string`mapstructure:"snapshot" description:"Snapshot IDs to copy (if empty, all snapshots are copied)"`
0 commit comments