Page 1 of 1

Delete .part.rar files when unpacked

Posted: January 28th, 2022, 8:07 pm
by SabUser0909
Hi!

I don't have a lot of space on my VPS and i wanted to ask, if it is possible to delete already unpacked .part.rar files in the incomplete folder in order to save some space?

For example: If i download a 50GB file, i'll need 100GB in total since all part files in the incomplete folder are stored until the download is complete.

Let's say SABnzbd is unpacking while downloading and has unpacked the contents of a part file, is it possible to delete this part file to save space?


I hope you can understand what I mean by that

Thx

Re: Delete .part.rar files when unpacked

Posted: January 29th, 2022, 12:32 am
by sander
Niche, and risky stuff: what if after unrar it turns out one rar is broken and needs repair? Then you need to redownload all rar files again.

But, good news: you can do it yourself: run a process that looks at sabnzbd.log (with +DEBUG), and delete each rar after is has been used.

Code: Select all

Extracting from /home/sander/Downloads/incomplete/test_download_1000MB/sometestfile-1000MB.part04.rar

...         sometestfile-1000MB.bin

Extracting from /home/sander/Downloads/incomplete/test_download_1000MB/sometestfile-1000MB.part05.rar

...         sometestfile-1000MB.bin

Extracting from /home/sander/Downloads/incomplete/test_download_1000MB/sometestfile-1000MB.part06.rar

...         sometestfile-1000MB.bin

Re: Delete .part.rar files when unpacked

Posted: January 29th, 2022, 9:01 pm
by SabUser0909
Okay thanks!

I wanted to execute a python script which is located in /usr/bin/local but my sabnzbd user doesn't have rights to access that folder. A symlink to /usr/bin/local/scriptname didn't work either. It says path not found.

Is there a way to execute a script as root user?