-
-
Notifications
You must be signed in to change notification settings - Fork 254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
entrypoint: fix broken automatic backups #281
Conversation
Sorry for the slow reply, and thanks for the PR! @hackerkid can you take a look at this? |
@Roosted7 Do you know when was the last successful backup? |
@hackerkid Nope, our installation is quite recent and backups never worked. Only while implementing a custom (internal) backup solution, I noticed this broken built-in functionality and fixed that instead. |
@Roosted7 Okay. Just to verify, with this fix the corn job is correctly creating the backup right? One thing I am a bit puzzled about is this. root@de940ecbcfd4:~# more /etc/cron.d/autobackup
MAILTO=""
30 3 * * * cd /;/entrypoint.sh app:backup
root@de940ecbcfd4:~# cd /;/entrypoint.sh app:backup The cronjob try to execute |
Oh, I think we should actually just be removing this |
The cron entry looks wrong as well. Being on the filesystem it should include the username. The resulting schedule should be
|
@alexmv you cool with me closing this in favor of #262? We then have a forking path to decide between taking the |
Fixing the cron entry is probably useful regardless of how the backup runs. I don't know that doing any of the |
I think we want to delete that very alpha old |
The scheduled database backups, that run by default using a cron timer, have not worked for a while. This seemed to be for 2 reasons:
pg_dump
. This resulted in it not being able to run from the cron timer.This PR fixes both those things :)
I have seen plans to drop this backup system in favor of the integrated one, but for the time being it would make sense to at least have this backup function operational?