开发者

Copying MYSQL backup to another server

I'm new to SSH. How to copy a .gz file from one server to another using SSH?

I'm usi开发者_如何学运维ng cron to backup mysql databases and want to also automate the process of copying the .gz files a different web host.

Any information on the limit of file size that can be copied would also be great. The backup file size range from 100 MB to few GB.


You can use Remote File Copy (rcp) or ftp. There's no size limit.

Edit: Secure File Copy (scp) is the best option. Use it like this:

scp user1@host1:/home/sourcefile user2@host2:/dest/directory/
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜