You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 of scp to a remote host and to make use of POST_SCP_COMMAND in order to execute rotate-backups directly 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-backups directly on the remote host where we upload our backup to by means of scp. Unlike in the first option, we have a default configuration that can be customized by environmental varibales ROTATE_DAILY and so on.
We have Integrate rotate backups #36 where we are enabled to execute rotate-backups directly inside the container on the directoy /archive. A default configuration ist given by a .rotate-backups.ini file . A custom configuration file can be mounted.
Here are my thoughts about all these stuff:
If we like to make use of rotate-backups without scp, 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_COMMAND takes 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 600MB to 900MB (on ARM64). Installing rotate-backups at 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., by docker-compose down followed by docker-compose up -d).
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.
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.
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.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.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:
rotate-backupswithoutscp, we need an external solution (e.g., cron job outside of the container) or we Integrate rotate backups #36.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.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).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