What logs can be checked to see the files/directories transferred by cloud sync?
Applies to
Cloud Sync
Answer
Download the databroker logs, and check for "relationships.log
" file which will have all file/directroy details which are transferred by cloud sync databroker with success or failure.
NOTE: It is not easy to manually pull all the file/directory details from relationship.log as there might be multiple data brokers involved and also the logs file is not easy to extract and read.
Additional Information
Below is the example to read the relationship logs :
[2022-10-10T21:16:18.151] [INFO] [TRANSFERRER] [1] [16603] [62c534af57663c84375dbc20] STARTING copy from: {"local":{"path":"mnt/62c534af57663c84375dbc20/d7b2f827-00e1-4a4f-9641-4a4cbac16eee_src"}} to: {"local":{"path":"mnt/62c534af57663c84375dbc20/d7b2f827-00e1-4a4f-9641-4a4cbac16eee_trg"}} entry: {"path":"test","type":"DIRECTORY","size":0,"mode":16822,"uid":0,"gid":0,"mtimeSec":1660029145,"creationTimeSec":1660029132,"cifsAcl":"ACL:Everyone@WORLD AUTHORITY:ALLOWED/I/FULL,ACL:Everyone@WORLD AUTHORITY:ALLOWED/OI|CI|IO|I/","tempEntryName":".test_i0zhzAN_netapp"}
[2022-10-10T21:16:18.179] [INFO] [TRANSFERRER] [1] [16603] [62c534af57663c84375dbc20] COMPLETED copy from: {"local":{"path":"mnt/62c534af57663c84375dbc20/d7b2f827-001-4a4f-9641-4a4cbac16eee_src"}} to: {"local":{"path":"mnt/62c534af57663c84375dbc20/d7b2f827-00e1-4a4f-9641-4a4cbac16eee_trg"}} entry: {"path":"test","type":"DIRECTORY","size":0,"mode":16822,"uid":0,"gid":0,"mtimeSec":1660029145,"creationTimeSec":1660029132,"cifsAcl":"ACL:Everyone@WORLD AUTHORITY:ALLOWED/I/FULL,ACL:Everyone@WORLD AUTHORITY:ALLOWED/OI|CI|IO|I/","tempEntryName":".test_i0zhzAN_netapp"} took: 27
NOTE:
62c534af57663c84375dbc20
-> Relationship IDpath
-> Is the path of File/ DIRECTORY that is copied.STARTING
-> Indicates copy of this file/DIRECTORY is startedCOMPLETED
-> Indicates copy of this file/DIRECTORY is completed successfullytook ->
Indicates the time it took to copy the file to Target ( in msec )