If this feature already Exists/Requested/Denied I didn't see it, sorry in advance. Also this is a cool project!
General Idea
It would be nice if we could tie in some custom bash scripts at certain points in the backup lifecycle in order to facilitate some custom backup logic. I think if it were just some Environment Variables/labels that default to empty it would allow users to map a scripts volume that then gets ran if the vars are mapped to files.
Concept Use
The main use I see for this is kicking off a post script which could Compress/Remote Backup/Trigger Webhook/Etc...
Proposed Vars
- PRE_BACKUP_SCRIPT
- Ran before any containers start backing up
- Pass in the Source/Dest Directories as args
- PRE_CONTAINER_BACKUP_SCRIPT
- Ran before each individual container backup
- Pass in the Container Name/Source/Dest as args
- POST_CONTAINER_BACKUP_SCRIPT
- Ran after an individual container backup
- Pass in the Container Name/Source/Dest as args
- POST_BACKUP_SCRIPT
- Ran after all containers have been backed up
- Pass in the Source/Dest Directories as args
Whether or not the nautical process should exit based on the script exit codes could also be a flag: SCRIPT_PASS_REQUIRED
If this feature already Exists/Requested/Denied I didn't see it, sorry in advance. Also this is a cool project!
General Idea
It would be nice if we could tie in some custom bash scripts at certain points in the backup lifecycle in order to facilitate some custom backup logic. I think if it were just some Environment Variables/labels that default to empty it would allow users to map a scripts volume that then gets ran if the vars are mapped to files.
Concept Use
The main use I see for this is kicking off a post script which could Compress/Remote Backup/Trigger Webhook/Etc...
Proposed Vars
Whether or not the nautical process should exit based on the script exit codes could also be a flag: SCRIPT_PASS_REQUIRED