Skip to content
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

Backup Temp Files Are Not Being Cleaned Up #863

Open
pugfantus opened this issue May 13, 2023 · 2 comments
Open

Backup Temp Files Are Not Being Cleaned Up #863

pugfantus opened this issue May 13, 2023 · 2 comments
Labels

Comments

@pugfantus
Copy link

When backups are run, they are not removing the temp sql dumps that are created. These temp files are filling up my container after a few weeks. When this happens, nzbhydra attempts to shutdown, and causes the config file to not save properly. The config file is seen as corrupted upon restart, which means I have to restore it from a previous backup once I clean up the temp files.

I found steps from another issue to help defrag and shrink the size of the db, which has helped a little, but the issue remains where the uncompressed temp files are not being reaped. I've thought about setting up a cronjob to remove them periodically, but I wanted to check here first incase I've misconfigured something.

root@dia:/tmp# ls -lh /opt/nzbhydra2/data/backup/*
-rw-r--r-- 1 nzbhydra2 nzbhydra2 1.4G Apr 18 04:04 '/opt/nzbhydra2/data/backup/nzbhydra-2023-04-18 03-54-55.zip'
-rw-r--r-- 1 nzbhydra2 nzbhydra2 1.4G Apr 24 22:26 '/opt/nzbhydra2/data/backup/nzbhydra-2023-04-24 22-17-20.zip'
-rw-r--r-- 1 nzbhydra2 nzbhydra2 1.3G Apr 25 04:36 '/opt/nzbhydra2/data/backup/nzbhydra-2023-04-25 04-26-36.zip'
-rw-r--r-- 1 nzbhydra2 nzbhydra2 1.4G May  2 05:32 '/opt/nzbhydra2/data/backup/nzbhydra-2023-05-02 05-22-41.zip'
-rw-r--r-- 1 nzbhydra2 nzbhydra2 1.4G May  9 05:41 '/opt/nzbhydra2/data/backup/nzbhydra-2023-05-09 05-32-21.zip'
root@dia:/tmp# ls -lh nzbhydra*
-rw-r--r-- 1 nzbhydra2 nzbhydra2 2.4G May  9 05:40 nzbhydra18099182130272538951zip
-rw-r--r-- 1 nzbhydra2 nzbhydra2 2.4G May  2 05:31 nzbhydra2434375385275361091zip

nzbhydra-debuginfos-2023-05-13-13-41.zip

Version: 5.1.8 (and older versions as well)
OS: Debian 11 LXC

@pugfantus pugfantus added the bug label May 13, 2023
@theotherp
Copy link
Owner

I'm currently moving to another city. I'll look into it when I'm finished.

@theotherp
Copy link
Owner

Should be fixed by now. Temp files are always deleted after being used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants