Is there any way of execute shell command after success backup (via Flag)?

Hi all:

I think this is not possible but I’m looking for exec a shell command after succesfull backup via flag. I’m using backrest for automatization of backups. The only way of exec backups is using a flag.

Thanks

1 Like

not via restic itself. but the wrapper tools do this. for example backrest:

1 Like

Thanks.. that’s the point. I need to send a command using backrest…

2 Likes

Can’t you rely just on bash for that?
You can handle exit codes how you need it, the easiest is probably:

restic backup xxx && echo "successful execution"
3 Likes