Skip to content

Instantly share code, notes, and snippets.

View maurisource's full-sized avatar

Manesh maurisource

View GitHub Profile
@tegansnyder
tegansnyder / dataflow-export-timestamp.php
Last active May 16, 2017 22:11
Programmatically running a Magento Dataflow Profile export and appending timestamp to filename
<?php
require_once('app/Mage.php');
umask(0);
Mage::app();
Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID);
ini_set('memory_limit', '2048M');
$profile_id = 44;
$profile = Mage::getModel("dataflow/profile")->load($profile_id);