cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
distill
New Member

Best way to backup new files from OneDrive to any network folder behind VPN

What is the best way to regularly (say once per day) backup

new files from OneDrive to an SMB network folder? (The network folder is something our teams uses so I can't change that to something else.)

 

What makes it a bit more complicated is:

- the network folder can be accessed as a normal folder in Windows Explorer, but VPN connection is required – however this can be simply dealt with any error message like "Copy failed", in which case user would understand to connect VPN and re-run the script

- file listing comparison and filesize+timestamp check is needed (if file is already copied, do not waste time by copying again)

 

The question could be also "What is the best way to regularly backup new files from a local folder to a network folder" (because the desktop version of OneDrive can be set as [ ] "Save space and download files as you use them", in which case the OneDrive folder would be just like a normal local folder).

 

If this is close to impossible with just Power Automate and some scripting, then I can also consider installing some backup software? Perhaps someone knows the best solution for this?

1 REPLY 1
Amanthaper
Super User
Super User

Hi,

Yes, you can certainly do what you're looking to do using P-AM. Do you have the option to install an On-premise data Gateway? If you do then you could even do the backups and do away with the VPN requirement altogether.

Let me clarify. The way I would do this is by using an on-prem gateway, which is basically an always alive point-to-point VPN connection.

Once the gateway is set up then you could map to any folder or drive as a connection and perform all sorts of actions between your on-premise resources (files, folders, etc...) and numerous cloud resources using Power Automate.

Let me know if you need a proof of concept.

Amanthaper_0-1601941403352.png

 

Helpful resources

Announcements
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Carousel

Sign up for our May 4th event!

May the fourth be with you, join us online!

MSFTBizAppsLaunchEvent

Experience what’s next for Power Virtual Agents

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (89,291)