Page 1 of 1

What is the resume data temp file naming scheme?

Posted: Sat Sep 20, 2014 7:47 am
by AsaRossoff
I understand that resume data files are saved to temporary files first (then original deleted, then temporary files renamed) as a protective measure.

What is the file naming scheme for the temp files?  filename + .tmp ?

I ask because I'm implementing a continuous differential version-controlled backup scheme, and don't think I want to backup the temp files as it might cause a lot of extra backing up, depending on how I do this/sensitivity of "continuous".  Also, I'll always have the original filename's prior versions.

Thanks :)

P.S.
I think this was addressed in https://github.com/qbittorrent/qBittorr ... a652a11096, but I can't figure it out from what I see there.

Re: What is the resume data temp file naming scheme?

Posted: Sat Sep 20, 2014 9:02 am
by ciaobaby
Exclude;

Code: Select all

 ./tmp/*
From the backup.

Re: What is the resume data temp file naming scheme?

Posted: Sat Sep 20, 2014 6:27 pm
by AsaRossoff
Thanks ciaobaby!
So...on Windows...  %localappdata%\qBittorrent\BT_backup\tmp\*.fastresume  ?

Does this also apply to qBittorrent-resume.ini or other files?
i.e., on Windows, perhaps %appdata%\qBittorrent\tmp\qBittorrent-resume.ini  ?

peace

Re: What is the resume data temp file naming scheme?

Posted: Sat Sep 20, 2014 7:08 pm
by sledgehammer_999
The code you linked just saves some extra keys/values inside the .fastresume file.
The isn't any extra file created.

Re: What is the resume data temp file naming scheme?

Posted: Sat Sep 20, 2014 7:13 pm
by AsaRossoff
Thanks sledgehammer_999.  I could have sworn you had described at one point making a change that involved making extra copies of files as I described, and my memory even has the detail that the temporary copy is considered authoritative at startup if it exists!

Re: What is the resume data temp file naming scheme?

Posted: Sat Sep 20, 2014 9:45 pm
by sledgehammer_999
That is for the *.ini files.
IIRC it creates a qbittorrent-new.ini file etc

Re: What is the resume data temp file naming scheme?

Posted: Mon Sep 22, 2014 11:03 am
by AsaRossoff
Great, thanks sledge!  Good enough.
~
When I get back to setting things up I think I won't put in an exclusion after all, to start with, and see if one is really needed.  If so, I'll see for myself what filespec I get.  If it is only rarely backed up, it's better to keep it anyway. :)

I'm going for a simple-to-setup method, so if it works well I'll post instructions.