I have a master and slave website setup and want to import only a selection of the feeds at the slave website.
At the database tool I can backup the master website. So in the xml I see with a number. But how do I know which merchant belongs to a number?
And if I want to automate the import of the slave website do I use the fetch.sh with only the import line? /usr/bin/php /home/slavewebsiteaccountname/public_html/scripts/import.php @MODIFIED.
And what if I want to 'remove a feed' at the slave website without removing it at the master website. Is there another way than removing it first at the master website?
Hi Marco,
Here's a way to add a readable filename to the feed records in the backup XML. In admin/database_tool.php look for the following code at line 71:
$xml .= "<".strtoupper($table)."_R>\n";
...and REPLACE that with:
if ($record["filename"])
{
$xml .= "<".strtoupper($table)."_R readable='".$record["filename"]."'>\n";
}
else
{
$xml .= "<".strtoupper($table)."_R>\n";
}
That way, you'll be able to remove the <FEEDS_R> records not required on your slave site.
With that in place, your import CRON process looks fine; and removing a feed at the slave website I would simply remove from the backup XML file and then restore - which won't affect already registered feeds (although they will be re-imported at the next CRON process because the modified date will have been reset...)
Cheers,
David.
--
PriceTapestry.com