Linux Remote Copy SCP command

Source: Internet
Author: User
Tags scp command

Today to update the database from the admin server to the DZ server with the modified content and Image_count on the test.

First you need to back up the database and use the mysqldump command

Full table Backup: Mysqldump-u root-p artdb topic > Topic_back_2016_09_10.sql

Conditional backup: mysqldump-u root-p artdb topic--where= "FLAG_HQ =1 and Flag_off = 0" >Hq.sql;

Before you can make an SCP copy, you need to be able to ssh to the target computer remotely and not copy it if you cannot ssh. Specific reference: http://www.cnblogs.com/jdksummer/articles/2521550.html

Make SCP copy SCP [email protected]:/home/yangkun/soft/topic_update.sql. /db_back/

SCP User name @ Remote Address: File path destination file path

For the SCP command, refer to: http://www.cnblogs.com/peida/archive/2013/03/15/2960802.html

Linux Remote Copy SCP command

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.