Skip to content
Snippets Groups Projects
exportDataFromInstance.bat 710 B
Newer Older
  • Learn to ignore specific revisions
  • @echo off
    echo This script to export data from a cozy doctype
    echo Please provide cozysessid (can be found after connection in browser dev tool)
    set /p token="CozySessid ? : "
    echo Please select your cozy instance name : 'https://mon.instance.cozygrandlyon.cloud/'
    set /p instance="Instance ? : "
    echo Please select the doctype name you wish to export (ex : com.grandlyon.egl.day)
    set /p name="Choice ? : "
    echo Please select the file name for exported data
    set /p filename="Filename ? : "
    echo Execute ACH -t %token% -u %instance% export %name% %filename%
    echo Do not forget to delete tour token (AAAAA....etc.json) before executing another ACH command !
    ACH -t %token% -u %instance% export %name% %filename%