Tags: Backups, CSV, Export, FTP, Inventory
On a configurable schedule, this task generates a Shopify-friendly CSV of your inventory, and uploads it to the SFTP destination of your choice, and/or sends it via email. This is a convenient way to keep regular backups of your entire product inventory: simply import a CSV to restore your inventory to that point in time. (Learn more about CSV imports and exports of Shopify inventory.)
- View in the task library: tasks.mechanic.dev/backup-scheduled-inventory-exports-in-shopifys-csv-format
- Task JSON, for direct import: task.json
- Preview task code: script.liquid
{
"only_export_products_matching_this_query": null,
"run_every_x_hours__number": null,
"sftp_host__required": null,
"sftp_port__required_number": null,
"sftp_user__required": null,
"sftp_password__required": null,
"sftp_upload_directory": null
}
Learn about task options in Mechanic
mechanic/user/trigger
{% if options.run_every_x_hours__number == 24 %}
mechanic/scheduler/daily
{% elsif options.run_every_x_hours__number %}
mechanic/scheduler/hourly
{% endif %}
mechanic/shopify/bulk_operation
Learn about event subscriptions in Mechanic
On a configurable schedule, this task generates a Shopify-friendly CSV of your inventory, and uploads it to the SFTP destination of your choice, and/or sends it via email. This is a convenient way to keep regular backups of your entire product inventory: simply import a CSV to restore your inventory to that point in time. (Learn more about CSV imports and exports of Shopify inventory.)
To only export certain products, set the "Only export products matching this query" option to a search query that works with Shopify's inventory admin area. For example, to only export products tagged "backmeup", use the search query "tag:backmeup".
Find this task in the library at tasks.mechanic.dev, and use the "Try this task" button. Or, import this task's JSON export – see Importing and exporting tasks to learn how imports work.
Found a bug? Got an improvement to add? Start here: ../../CONTRIBUTING.md.
Submit your task requests for consideration by the Mechanic community, and they may be chosen for development and inclusion in the task library!