-
Notifications
You must be signed in to change notification settings - Fork 86
Open
Description
Hey @jareware,
things addressing rotate backups got a little bit messy. That's why I open this issue to summarize what we currently have and to discuss what we want to have.
- Since
v2.5.0, we are enabled to upload backups by means ofscpto a remote host and to make use ofPOST_SCP_COMMANDin order to executerotate-backupsdirectly on that remote host. Here, we have to overhand the complete configuration, e.g.,POST_SCP_COMMAND: rotate-backups --daily 7 --weekly 4 --monthly 12 --yearly always /backup-directory. - We have Trigger rotate backups on remote host #42 where we, again, execute
rotate-backupsdirectly on the remote host where we upload our backup to by means ofscp. Unlike in the first option, we have a default configuration that can be customized by environmental varibalesROTATE_DAILYand so on. - We have Integrate rotate backups #36 where we are enabled to execute
rotate-backupsdirectly inside the container on the directoy/archive. A default configuration ist given by a.rotate-backups.inifile . A custom configuration file can be mounted.
Here are my thoughts about all these stuff:
- If we like to make use of
rotate-backupswithoutscp, we need an external solution (e.g., cron job outside of the container) or we Integrate rotate backups #36. - All three option handle customizing configuration in some own way. Imho, it would be nice to overhand configuration in some common way. As
POST_SCP_COMMANDtakes some arbitrary command, we cannot improve anything here. But Trigger rotate backups on remote host #42 provides most likely the most easy way to customize the configuration. These way can also used in Integrate rotate backups #36. That would result in a much better user experience. - Integrate rotate backups #36 increases the image size from round about
600MBto900MB(on ARM64). Installingrotate-backupsat runtime, if it has been activated, is not a nice idea because the package itself and some dependencies have to be downloaded everytime the container has been removed and restarted (e.g., bydocker-compose downfollowed bydocker-compose up -d). - If we do not merge Integrate rotate backups #36, we definitely do not need Trigger rotate backups on remote host #42 because the functionality is already there.
As far as I see, the first question that has to be answered is if #36 can be merged. In order to reduce the image size, maybe we can draw on #27. In the end, maybe we end up by the same image size we currently have.
What do you think?
Regards,
Jan
Metadata
Metadata
Assignees
Labels
No labels