|
| 1 | +Resumable Transfers |
| 2 | +====================================== |
| 3 | +BlobPorter supports resumable transfers. To enable this feature you need to set the -l option with a path to the transfer status file. |
| 4 | + |
| 5 | +``` |
| 6 | +blobporter -f "manyfiles/*" -c "many" -l mylog |
| 7 | +``` |
| 8 | +
|
| 9 | +The status transfer file contains entries for when a file is queued and when it was succesfully tranferred. |
| 10 | + |
| 11 | +The log entries are created with the following tab-delimited format: |
| 12 | + |
| 13 | +``` |
| 14 | +[Timestamp] [Filename] [Status (1:Started,2:Completed,3:Ignored)] [Size] [Transfer ID ] |
| 15 | +``` |
| 16 | + |
| 17 | +The following output from a transfer status file shows that three files were included in the transfer (file10, file11 and file15). |
| 18 | +However, only two were successfully transferred: file10 and file11. |
| 19 | + |
| 20 | +``` |
| 21 | +2018-03-05T03:31:13.034245807Z file10 1 104857600 938520246_mylog |
| 22 | +2018-03-05T03:31:13.034390509Z file11 1 104857600 938520246_mylog |
| 23 | +2018-03-05T03:31:13.034437109Z file15 1 104857600 938520246_mylog |
| 24 | +2018-03-05T03:31:25.232572306Z file10 2 104857600 938520246_mylog |
| 25 | +2018-03-05T03:31:25.591239355Z file11 2 104857600 938520246_mylog |
| 26 | +``` |
| 27 | + |
| 28 | +In case of failure, you can reference the same status file and BlobPorter will skip files that were already transferred. |
| 29 | + |
| 30 | +Consider the previous scenario. After executing the transfer again, the status file has entries only for the missing file (file15). |
| 31 | + |
| 32 | +``` |
| 33 | +2018-03-05T03:31:13.034245807Z file10 1 104857600 938520246_mylog |
| 34 | +2018-03-05T03:31:13.034390509Z file11 1 104857600 938520246_mylog |
| 35 | +2018-03-05T03:31:13.034437109Z file15 1 104857600 938520246_mylog |
| 36 | +2018-03-05T03:31:25.232572306Z file10 2 104857600 938520246_mylog |
| 37 | +2018-03-05T03:31:25.591239355Z file11 2 104857600 938520246_mylog |
| 38 | +2018-03-05T03:54:33.660161772Z file15 1 104857600 495675852_mylog |
| 39 | +2018-03-05T03:54:34.579295059Z file15 2 104857600 495675852_mylog |
| 40 | +``` |
| 41 | + |
| 42 | +When the transfer is sucessful, a summary is created at the end of the transfer status file. |
| 43 | + |
| 44 | +``` |
| 45 | +---------------------------------------------------------- |
| 46 | +Transfer Completed---------------------------------------- |
| 47 | +Start Summary--------------------------------------------- |
| 48 | +Last Transfer ID:495675852_mylog |
| 49 | +Date:Mon Mar 5 03:54:34 UTC 2018 |
| 50 | +File:file15 Size:104857600 TID:495675852_mylog |
| 51 | +File:file10 Size:104857600 TID:938520246_mylog |
| 52 | +File:file11 Size:104857600 TID:938520246_mylog |
| 53 | +Transferred Files:3 Total Size:314572800 |
| 54 | +End Summary----------------------------------------------- |
| 55 | +``` |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | + |
0 commit comments