I accidentally posted this to backup state/phases · Issue #3429 · duplicati/duplicati · GitHub instead of posting it here. It didn’t get much response there so I’m reposting here now that I realise my mistake. I’ve put the reply history from there below as well.
Environment info
- Duplicati version : 2.0.3.3_beta_2018-04-02
- Operating system : Windows 10
- Backend : external USB drive.
Description
I’ve searched for a list of backup states/backup phases but can’t find anything. Two that I’ve seen so far that have puzzled me are:
Backup_Begin
and
Backup_Delete
Backup_Begin is particularly puzzling. The web gui interprets that as “starting” but how is it possible that it is starting when it appears to be doing nothing? It has been in this state for more than 10 minutes now. If I use duplicati_client/duc it reports this information to me:
Progress:
BackendAction: List
BackendFileProgress: 0
BackendFileSize: 0
BackendIsBlocking: false
BackendPath: null
BackendSpeed: -1
BackupID: ‘130’
CurrentFilename: null
CurrentFileoffset: 0
CurrentFilesize: 0
OverallProgress: 0.0
Phase: Backup_Begin
ProcessedFileCount: 0
ProcessedFileSize: 0
StillCounting: false
TaskID: 13
TotalFileCount: 0
TotalFileSize: 0
During this time it is clearly not counting files because there still is no count, and it would tell me if it were counting files. It is not checking anything on the USB drive, because the drive light is not flashing. What is it doing?
I did not notice it doing this long backup begin phase until after I turned on exclusion of system files in the backup - does it have anything to do with that?
Backup_Delete - this one seems particularly horrifying until you make the assumption that it is NOT actually deleting the backup you just completed but is really just deleting files that are in the backup that are no longer required - at least that is what I assume is happening. It would be great if it was called something less scary!
Is there a list of backup states somewhere that describes what each state means?
Thanks again,
Stephen
Further update from @Stephen
After 15 minutes it finally began counting files and then very quickly changed state to Backup_PreBackupVerify - so what was it actually doing for the preceeding 15 minutes?
Reply from @Pectojin n my machine it will spend a bit of time listing the backend files before it starts counting local files. I believe this is just a verification that everything looks ok before starting the backup itself.
Progress:
Backend:
Action: List
State: Backup_Begin
Task ID: 40
Is it possible it’s having trouble listing the files on the “backend”? How many files are on the USB? And do you have any noticeable delay in listing the files if you open the USB manually in Explorer?
By the way, I’ve noticed in the client it will start saying Counting files: true
much earlier than in the Web UI. So it’s possible it’s counting files before the 15 minutes pass, although 15 minutes still seems long without an update in the UI.
Reply from @Stephen
@Pectojin hanks for your reply. There are 4054 files on the USB drive and it took about 10 seconds to list every single one of them. But during the Backup_Begin phase it wasn’t even accessing the USB drive, so I don’t think it is related to that. I’d really like to know what it is doing in that time - it needs to communicate better!
As far as counting files goes, I was checking using your duc application to confirm if it was reporting counting files before the webui, but the whole time it was in the backup_begin state it was not.