Skip to content

Feature Request: Container start/stop priority #204

@Riewest

Description

@Riewest

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

  1. PRE_BACKUP_SCRIPT
    • Ran before any containers start backing up
    • Pass in the Source/Dest Directories as args
  2. PRE_CONTAINER_BACKUP_SCRIPT
    • Ran before each individual container backup
    • Pass in the Container Name/Source/Dest as args
  3. POST_CONTAINER_BACKUP_SCRIPT
    • Ran after an individual container backup
    • Pass in the Container Name/Source/Dest as args
  4. 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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions