Mobile app version of vmapp.org
Login or Join
Goswami781

: Magento Backup using mysqldump I have website using magento installed in ubuntu ec2 server. I would like to do a backup of the whole magento website. I stumbled on an article that tells me

@Goswami781

Posted in: #AmazonEc2 #Magento #Mysql #Ubuntu #WebDevelopment

I have website using magento installed in ubuntu ec2 server. I would like to do a backup of the whole magento website. I stumbled on an article that tells me to run this command
www.magentocommerce.com/wiki/groups/227/moving_magento_to_another_server
mysqldump -h DBHOST -u DBUSER -pDBPASS --single-transaction DBNAME > data.sql

Question is: In what directory do I run the above command? should I run it in home/ubuntu or in var/www/magento which is the root of the magento, or does it matter at all?

Thanks!

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Goswami781

1 Comments

Sorted by latest first Latest Oldest Best

 

@Turnbaugh106

Doesn't matter what directory you run the command in, however it will save the sql dump file into the folder your currently in if using SSH to run the command. If you would like to save the file in an alternative path or should you be running it using a cron job then simply edit the last string with the full path you'd like to save the file too, i.e DBNAME > /path/you/want/data.sql.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme