-
-
Notifications
You must be signed in to change notification settings - Fork 112
Open
Description
I have next configuration for Magento2 setup:
Config
<?xml version="1.0" encoding="UTF-8"?>
<phpbu xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://schema.phpbu.de/6.0/phpbu.xsd">
<adapters>
<adapter type="env" name="env" />
</adapters>
<backups>
<backup name="abc">
<source type="mysqldump">
<option name="host" value="adapter:env:MYSQL_HOST" />
<option name="port" value="adapter:env:MYSQL_PORT" />
<option name="databases" value="adapter:env:MYSQL_DATABASE" />
<option name="user" value="adapter:env:MYSQL_USER" />
<option name="password" value="adapter:env:MYSQL_PASSWORD" />
<option name="structureOnly" value="session,report_viewed_product_index,customer_visitor,search_query,report_event,report_viewed_product_aggregated_monthly,report_viewed_product_aggregated_yearly,report_viewed_product_aggregated_daily" />
</source>
<target dirname="dumps"
filename="abc-mage-%Y%m%d-%H%i.sql"
compress="gzip" />
<sync type="amazons3">
<option name="key" value="adapter:env:AWS_KEY" />
<option name="secret" value="adapter:env:AWS_SECRET" />
<option name="endpoint" value="adapter:env:AWS_ENDPOINT" />
<option name="bucket" value="adapter:env:AWS_BUCKET" />
<option name="region" value="adapter:env:AWS_REGION" />
<option name="useMultiPartUpload" value="true" />
<option name="path" value="adapter:env:AWS_PATH" />
</sync>
<cleanup type="stepwise">
<option name="daysToKeepDaily" value="40" />
<option name="weeksToKeepWeekly" value="30" />
<option name="monthToKeepMonthly" value="12" />
</cleanup>
</backup>
</backups>
</phpbu>The problem is that in fact option structureOnly enables structure only for all tables (not only mentioned). I'm pretty sure that this option works fine few years ago.
As you can see from the screenshoot from s3 - first 2 files was created with provided config, and 3rd - with commented option
Metadata
Metadata
Assignees
Labels
No labels
