-
Notifications
You must be signed in to change notification settings - Fork 5
Delivery Archive For AWS Environments
ionutpad edited this page Jan 4, 2018
·
1 revision
sudo -u www-data php index.php 'oat\taoDeliveryRdf\scripts\tools\RegisterDeliveryArchive'
This command will add a new storage directory (deliveriesArchives) where the archives will be saved. And it will subscribe to the fallowing events:
- DeliveryCreated (it will generate an archive of the delivery after compilation and save the zip)
- DeliveryRemoved (it will remove the zip generated)
sudo -u www-data php index.php 'oat\taoDeliveryRdf\scripts\tools\UnRegisterDeliveryArchive'
Note:
This command will not remove the archives created.
Sync deliveries files (archives). This is available in the context of using the same database but you need to sync the files to other server.
Command availalble
sudo -u www-data php index.php 'oat\taoDeliveryRdf\scripts\tools\DeliveryExecutionArchive'
Usage: oat\taoDeliveryRdf\scripts\tools\DeliveryExecutionArchive <mode> [<args>]
Available modes:
list get list of all deliveries
archive archive all deliveries use --force to force regeneration
unarchive unarchive all deliveries --force to force unarchiving
delete delete all archives deliveries
Note:
After a zip it's unarchived the zip file it's marked as been processed by the env based on php method gethostname() in order to not processed a zip file multiple times by the same env and to be safe using the unarchive command in a while bash block. In order to ignore the processed flags of zip file use --force flag.