将我的数据文件发送到FTP服务器 [英] sending my data files to an FTP server

查看:73
本文介绍了将我的数据文件发送到FTP服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我有一台名为myserver1.com的服务器,其IP地址为(192.168.1.5),我想将数据文件发送到另一台服务器,该服务器的IP地址为192.168.100.5.
我要将数据发送到的服务器的用户名是user2和密码pass2.
(这只是一个突出的例子)

我该如何连接?
我需要每天每5个小时发送一次数据.

最好的问候...

ps
如果能解释代码的工作原理,我将不胜感激.

非常感谢

Hi there,

I have a server called myserver1.com with an ip adress(192.168.1.5) and I would like to send my data files to another server which is server2.com with an ip of 192.168.100.5.
The username of the server to which I will send the data to is user2 and password pass2.
(This is just an example to highlight)

How can I connect it?
I need to send the data after every 5 hours each day.

Best regards ...

ps
I would appreciate if I could get an explanation of how the code works ?

Many thanks

推荐答案

老实说,我不会自己写:我会使用备份程序.
To be honest, I wouldn''t write it myself: I''d use a backup program instead.


假设仅仅是数据,那么就没有可用的商业复制或备份程序了,为什么要重新发明轮子呢?


对于SQL,请尝试......

Assuming it is just data then there are no end of commercial copy or backup programs available, why reinvent the wheel?


For SQL try along the lines of...

INSERT INTO [server2].[database2]..states
SELECT statename FROM [server1].[database1]..states



或其变体.

否则,为什么不将其发布为Web服务并让第二台服务器直接获取数据呢?


很多选择.



Or a variation thereof.

Otherwise why not just post it as a webservice and have a second server just pick up the data directly?


Lots of options.


这篇关于将我的数据文件发送到FTP服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆