I'm creating a backup script in magento, and would like to export all customer data from the table ('customer / customer'). How could I get all the data from this table? I tried to use:
$user_loaded = Mage::getModel('customer/customer')->load($id)->getData();
echo $user_loaded. 'test: ';
to see what I would get I just get a test: Array. test: Array. test: Array
how could I turn this into the information I need? Example, name, lastname, email etc..
Or would I have to specify every field I need?
$name = $user_loaded->getFirstname();
$lastname = $user_loaded->getLastname();
If I have to do one by one does someone have the data that is needed to pull a complete backup? I do not want to do a dump backup for the fact of changing the tables, I just like to insert data, not change tables..
Would I have how do I pull everything from the table ('customer/customer') to a text file?