How to move 3GB .bak file from on-site ftp_server to azure blob storage container using sftp

August Asheim Birkeland 20 Reputation points
2023-01-28T11:30:36.4633333+00:00

Hi,

Im trying to move a ~3GB .bak file from an ftp_server to azure blob storage using sftp. I want the transfer to happen automatically once a day, as a new .bak file with the same name is placed at the FTP_server every night.

I have looked into logical apps and their SFTP functionality, but have understood that they won't handle a file size this big?

I have therefore looked into Azure functions instead. Theese two links ([https://ourcodeworld.com/articles/read/369/how-to-access-a-sftp-server-using-ssh-net-sync-and-async-with-c-in-winforms and [https://www.c-sharpcorner.com/article/how-to-upload-files-into-azure-blog-storage-using-azure-functions-in-c-sharp/) show how you can connect to a FTP_server to fetch a file and then upload it to a blob using c# code.

My question is if using an azure function with the SSH.NET package is the goto way of solving this?

If any of you have other suggestions they are greatly appreciated!

Thanks in advance.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,256 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,427 questions
Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
2,842 questions
{count} votes

1 answer

Sort by: Most helpful
  1. JIAN WANG 335 Reputation points
    2023-01-28T13:07:41.9366667+00:00

    if you only wan to sync the file , i would suggest avoiding coding unless you have other need that has to be done by coding.

    1. Use power automate.
    2. Use AzCopy
    3. Use onedrive

    i would like to combine power automate + onedrive.