Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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
Posted
Updated 11-Mar-14 2:06am
v2

1 solution

Hello,

There are several ways you can achieve this.

  1. 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#
  2. 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
  3. 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,
 
Share this answer
 
v2
Comments
agent_kruger 11-Mar-14 8:07am    
sorry sir, i failed to mention programitically there.
agent_kruger 11-Mar-14 8:07am    
+4 vote, but still nice links.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900