====== XNAT data syncing ====== Scan data in XNAT can be mirrored using a local XNAT or copied using the REST API. One way to use the API is using either python [[https://xnat.readthedocs.io/en/latest/|xnat]] or [[https://gitlab.com/radiology/infrastructure/xnatpy|xnatpy]] library. An example using ''import xnat'' from MC is on [[https://github.com/MingHsuanChiang/cron_mrproj_share/blob/main/mrproj.py|github]]. Compare to ''rsync'' from [[data:filesystem]] or ''fw download'' using [[:data:flywheel]].