What is the resume data temp file naming scheme?

Other platforms, generic questions.
Post Reply
AsaRossoff

What is the resume data temp file naming scheme?

Post 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.
ciaobaby

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

Post by ciaobaby »

Exclude;

Code: Select all

 ./tmp/*
From the backup.
AsaRossoff

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

Post 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
sledgehammer_999
Administrator
Administrator
Posts: 2443
Joined: Sun Jan 23, 2011 1:17 pm

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

Post by sledgehammer_999 »

The code you linked just saves some extra keys/values inside the .fastresume file.
The isn't any extra file created.
AsaRossoff

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

Post 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!
sledgehammer_999
Administrator
Administrator
Posts: 2443
Joined: Sun Jan 23, 2011 1:17 pm

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

Post by sledgehammer_999 »

That is for the *.ini files.
IIRC it creates a qbittorrent-new.ini file etc
AsaRossoff

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

Post 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.
Post Reply