
: 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
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!
More posts by @Goswami781
1 Comments
Sorted by latest first Latest Oldest Best
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.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2025 All Rights reserved.