To backup a database, you just need to runNormally I have to use both SSH and Phpmyadmin to backup files, folders, mysql databases. I am wondering if there is a way only use SSH command line to backup whole my website files and databases?
mysqldump -u database_user -p database_name > database_dump.sql
# To extract an uncompressed archive:
tar -xvf /path/to/foo.tar
# To create an uncompressed archive:
tar -cvf /path/to/foo.tar /path/to/foo/
# To create a .gz archive:
tar -czvf /path/to/foo.tgz /path/to/foo/
# To create a .bz2 archive:
tar -cjvf /path/to/foo.tgz /path/to/foo/
ForumWeb.Hosting is a web hosting forum where you’ll find in-depth discussions and resources to help you find the best hosting providers for your websites or how to manage your hosting whether you are new or experienced. You’ll find it all here. With topics ranging from web hosting, internet marketing, search engine optimization, social networking, make money online, affiliate marketing as well as hands-on technical support for web design, programming and more. We are a growing community of like-minded people that is keen to help and support each other with ambitions and online endeavors. Learn and grow, make friends and contacts for life.
The world's smartest hosting providers come here to discuss & share what's trending in the web hosting world!