ODK 公文包命令行表单导出

ODK briefcase command-line form export

我正在尝试自动备份提交的表单以将其转换为 CSV。

我正在使用这个命令行:

 java -jar ./ODK_Briefcase_v1.4.5_Production.jar --form_id NameOfTheForm 
--odk_username USER --odk_password PASSWORD 
--export_directory /var/www/data --storage_directory /var/www/data 
--export_filename A_Chaufferie.csv --overwrite_csv_export 
--export_start_date 2014/02/05 --export_end_date 2016/02/06

我收到错误 GRAVE: Form not found

我不知道 storage_directory 的目的是什么。我在我的服务器上找不到任何表单提交(尝试使用 linux 命令 find)。

你知道我错过了什么吗?


我有这个 --help:

java -jar briefcase.jar
 -ed,--export_directory </path/to/dir>     Directory to export the CSV and
                                           media files into (relative path
                                           unless it begins with / or C:\)
 -em,--exclude_media_export                Flag to exclude media on export
 -end,--export_end_date <yyyy/MM/dd>       Include submission dates before
                                           (exclusive) this date in export
                                           to CSV
 -f,--export_filename <name.csv>           File name for exported CSV
 -h,--help                                 Print help information (this
                                           screen)
 -id,--form_id <form_id>                   Form ID of form to download and
                                           export
 -oc,--overwrite_csv_export                Flag to overwrite CSV on export
 -od,--odk_directory </path/to/dir>        /odk directory from ODK Collect
                                           (relative path unless it begins
                                           with / or C:\)
 -p,--odk_password <password>              ODK password
 -pf,--pem_file </path/to/file.pem>        PEM private key file (relative
                                           path unless it begins with / or
                                           C:\)
 -sd,--storage_directory </path/to/dir>    Directory to create or find ODK
                                           Briefcase Storage directory
                                           (relative path unless it begins
                                           with / or C:\)
 -start,--export_start_date <yyyy/MM/dd>   Include submission dates after
                                           (inclusive) this date in export
                                           to CSV
 -u,--odk_username <username>              ODK username
 -url,--aggregate_url <url>                ODK Aggregate URL (must start
                                           with http:// or https://)
 -v,--version                              Print version information

我不知道我必须放置 --aggregate_url 即使简报和 ODK 聚合在同一台服务器中。不要错过 http:// 否则它不会工作

java -jar ./ODK_Briefcase_v1.4.5_Production.jar --form_id NameOfTheForm 
--odk_username USER --odk_password PASSWORD 
--export_directory /var/www/data --storage_directory /var/www/briefcase
--export_filename A_Chaufferie.csv --overwrite_csv_export 
--export_start_date 2014/02/05 --export_end_date 2016/02/06
--aggregate_url http://your.odk-aggregate.site