Inheritance: extends Mage_Shell_Abstract
Example #1
0
        return $this;
    }
    public function usageHelp()
    {
        return <<<USAGE
DESCRIPTION
    This script allows the developer to export all media files from the current
    storage backend, i.e. file system or database, to S3 via the command line.

SYNOPSIS
    php s3_export.php [--force]
                      [--dry-run]
                      [-h] [--help]

OPTIONS
    --force
        This parameter will legit upload all your media files to S3.

        NOTE: Please make sure to back up your media files before you run this!
        You never know what might happen!

    --dry-run
        This parameter will allow developers to simulate exporting media files
        to S3 without actually uploading anything!


USAGE;
    }
}
$shell = new Arkade_S3_Shell_Export();
$shell->run();