Skip to content

Review Collect FTP Export ​

The daily export command writes the previous calendar day's shipped-sale CSV and uploads it through passive FTP:

bash
php bin/console menzzo:review-collecte:export-shipped-sale-products --env=prod

The cron is managed in deployment infrastructure rather than this repository and must invoke the command at 01:00 in the server timezone. An explicit --date=YYYY-MM-DD replays a historical export, while --no-upload only writes the local file. --output=PATH overrides the local path without changing the remote filename.

Configuration ​

Deployment configuration lives in the uncommitted app/config/parameters.yml:

yaml
review_collect_ftp:
    host: ''
    port: 21
    username: ''
    password: ''
    remote_directory: '/orders'

All fields are required and validated before connecting. The committed parameters.yml.dist keeps credential and directory placeholders empty so a missing deployment value fails instead of silently uploading to an unintended directory.

Filename and Upload Safety ​

For export date 2026-07-08, the local and remote basename is shipped_2026_07_08.csv, and the production destination is /orders/shipped_2026_07_08.csv. Uploads use /orders/.shipped_2026_07_08.csv.part until size verification succeeds, then rename the temporary file atomically.

Internal developer documentation for Menzzo systems.