在c#中使用远程服务器备份 [英] Taking Backup on Remote Server in c#
本文介绍了在c#中使用远程服务器备份的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在开发一个软件,每隔3天在远程服务器上进行备份,但不知道如何将文件发送到通过它连接的远程服务器。 互联网(不进入)程序。有人可以给我一个线索如何开始或如何实现这个。
提前致谢
解决方案
您好,
有几种方法可以实现这一目标。
- FTP - 最常见的机制或大文件传输。
- SFTP 了解如何传输文件的类> ^ ]文章 - 另一种变体和nix平台常见,也称为FTP Over SSH。
- HTTP - 使用HTTP Multipart文件上传的另一种变体。
问候,
I am developing a software to take backup every 3 days on a remote server but have no idea how to send the files to a remote server connected via. Internet (Not intanet) PROGRAMITICALLY. Can somebody give me a clue how to start or how to achieve this.
Thanks in advance
解决方案
Hello,
There are several ways you can achieve this.
- FTP - The most common mechanism or large file transfers.
- Setup the MS FTP Server or third party FTP server[^] on the remote machine
- Please refer to this[^] article on CP to learn about how a file can be transferred using C#
- SFTP - Another variant and common to nix platforms, also referred as FTP Over SSH.
- Install an SSH Server[^] on remote machine
- Use this[^] library available on Codeplex to do the file transfers
- HTTP - Another variant using HTTP Multipart file upload.
- Setup IIS web server on the remote machine
- Create a upload page[^] in ASP.NET to receive the file and store it.
- Please refer to this[^] article to learn how to post a file to remote server using C# and HTTP
Regards,
这篇关于在c#中使用远程服务器备份的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文