Commit c25755a
committed
Fix backups for tasks using a mounted file share
Currently, backing up such a task succeeds, but restoring fails with "No
such file or directory: <root>/share/manifest.jsonl".
IMO, the problem is not really in the restore logic, but in the backup
logic. Share task backups are "heavyweight", in that they include a copy of
the media files. But the `storage` field in `task.json` is still set to
"share". As a result, CVAT tries to import it as a share task, and that
logic is broken.
I think we should handle such backups consistently with heavyweight cloud
storage backups, and set `storage` to "local". The restore logic will then
work perfectly well. In the future, if we happen to implement lightweight
backups for share tasks, we can use `storage: "share"` for those.1 parent 57ceda9 commit c25755a
File tree
4 files changed
+42
-8
lines changed- changelog.d
- cvat/apps/engine
- tests
- python/rest_api
4 files changed
+42
-8
lines changedLines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
619 | 619 | | |
620 | 620 | | |
621 | 621 | | |
622 | | - | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
623 | 626 | | |
624 | 627 | | |
625 | 628 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
| 2 | + | |
9 | 3 | | |
10 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1298 | 1298 | | |
1299 | 1299 | | |
1300 | 1300 | | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
| 1305 | + | |
| 1306 | + | |
| 1307 | + | |
| 1308 | + | |
| 1309 | + | |
| 1310 | + | |
| 1311 | + | |
| 1312 | + | |
| 1313 | + | |
| 1314 | + | |
| 1315 | + | |
| 1316 | + | |
| 1317 | + | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
| 1321 | + | |
| 1322 | + | |
| 1323 | + | |
| 1324 | + | |
| 1325 | + | |
| 1326 | + | |
| 1327 | + | |
1301 | 1328 | | |
1302 | 1329 | | |
1303 | 1330 | | |
| |||
1404 | 1431 | | |
1405 | 1432 | | |
1406 | 1433 | | |
| 1434 | + | |
| 1435 | + | |
| 1436 | + | |
1407 | 1437 | | |
1408 | 1438 | | |
1409 | 1439 | | |
| |||
0 commit comments