resticprofile icon indicating copy to clipboard operation
resticprofile copied to clipboard

How to invoke copy after backup?

Open xuhuanzy opened this issue 1 year ago • 3 comments

The groups command only invoked backup without the option to call copy.

Profiles available (name, sections, description):
  default:        (n/a)
  workspace-all:  (backup, copy)

Groups available (name, profiles, description):
  full-backup:  [workspace-all]

xuhuanzy avatar Oct 08 '24 22:10 xuhuanzy

No sorry, right now the copy command can't be called automatically after a backup.

creativeprojects avatar Oct 09 '24 10:10 creativeprojects

Alright, I suggest modifying the copy command to support multiple targets.

xuhuanzy avatar Oct 09 '24 16:10 xuhuanzy

You can use run-after to start another resticprofile within the first one. I'm doing this to invoke forget after copy:

run-after: 'resticprofile forget-{{ .Profile.Name }}.forget'

uwe-schwarz avatar Nov 02 '24 22:11 uwe-schwarz