Incremental backup of Shared Folders to local folder - possible?

  • 1
  • Question
  • Updated 4 months ago
I want to have a scheduled local backup of everything in our cloud Shared Folders. Incremental or mirror/sync would work. Is this possible with PowerShell SDK? I've searched this board, but I haven't been able to find any definitive answers.

If not, are there any third party solutions?

Thanks.
Photo of Richard

Richard

  • 5 Posts
  • 0 Reply Likes

Posted 4 months ago

  • 1
Photo of Michael Berrier

Michael Berrier, Employee

  • 122 Posts
  • 24 Reply Likes
Hi Richard,

Have you considered using ShareFile Sync? It's not typically used in a scheduled fashion, but should provide you with up-to-date local copies of whichever ShareFile folders you choose.

https://support.citrix.com/article/CTX207680

Michael Berrier
ShareFile Engineering
Photo of Richard

Richard

  • 5 Posts
  • 0 Reply Likes
Michael,

Thanks for the reply. It doesn't appear that Sync works as a service on a server. We would like this backup scheme to work as a service with supplied user credentials regardless if a Windows user is logged in.

If that's possible, I would use the same type of script for an upload to ShareFile.

Richard
(Edited)
Photo of Richard

Richard

  • 5 Posts
  • 0 Reply Likes
This appears to be the solution, transitioning from SFCLI to PowerShell. It's a one-way sync that would suit our needs perfectly. I found it on https://www.citrix.com/blogs/2014/11/13/transitioning-from-sfcli-to-sharefile-powershell/?_ga=2.1003...

I'll update the success status of this after I implement the script.

SFCLI:
sfcli -sf "/" -sync -down -l "c:\ShareFile Backup" -u bob@widgetco.com -pw BoBsP4Ss -s widgetco -deep –strict

PowerShell:
Sync-SfItem -ShareFilePath "/" -Synchronize -Download -LocalPath "c:\ShareFile Backup" -Recursive -Strict

This would download your entire ShareFile account (or at least, all of the files you have access to) to the directory c:\ShareFile Backup. Subsequent invocations of this command would download only files that have been updated in ShareFile since the last sync. Including the -strict flag will cause your backup to exactly match your ShareFile account, i.e., files that are deleted from ShareFile would get deleted from the local backup upon sync. Omitting the -strict flag would cause SFCLI only to download new and changed files, but never to delete files from C:\ShareFile Backup.
Photo of Michael Berrier

Michael Berrier, Employee

  • 122 Posts
  • 24 Reply Likes
Richard,

Yes, that should work in theory. Thanks for sharing and let me know if you hit any snags.

Michael