mysqldump --user MY_USER_NAME -p DB_NAME> /var/www/UNIQUE_NAME_AND_DATE.sql
Enter password: MY_PASSWORD
#compress, you can also use gzip
tar cvzf UNIQUE_NAME_AND_DATE.sql.tar UNIQUE_NAME_AND_DATE.sql
# delete sql
rm /var/www/UNIQUE_NAME_AND_DATE.sql
#download:
http://www.DOMAIN_NAME.com/UNIQUE_NAME_AND_DATE.sql.tar
# after transfer delete
rm /var/www/UNIQUE_NAME_AND_DATE.sql.tar
No comments:
Post a Comment