Got it !!
It's the subsection
What happen was i created 2 sections
- Overview (open to Guest)
- Members Area (restricted to enrolled students)
All the modules were subsections in the Members Area ... looking at DB, i think it looks like section but a column for subsection, that may have confused the restore script
Once i move all the content in the subsections to separate sections ... the restore completed in 7 secs
```
Execute adhoc task: core\task\asynchronous_restore_task
Adhoc task id: 26
Adhoc task custom data: {"backupid":"5e0f3754649d2881be057ed1bdf34645"}
... started 18:17:02. Current memory use 42.7 MB.
Processing asynchronous restore for id: 5e0f3754649d2881be057ed1bdf34645
loading controller from db
setting controller status to 800
saving controller to db
calculating controller checksum 7778ca34145c012036472ef64378aa0d
loading controller from db
processing file aliases queue. 0 entries.
setting controller status to 1000
saving controller to db
Restore completed in: 7 seconds
... used 6152 dbqueries
... used 7.1187601089478 seconds
Adhoc task complete: core\task\asynchronous_restore_task
```
Thanks Ken ... if it weren't for your advice to run the backup on CLI, i would not have seen the duplicate entries DB exception