Sync-SFItem extremely slow. Is there a way to sync only specific file types?

  • 1
  • Question
  • Updated 4 months ago
Hi guys,

I have in place a PS script that every x hours synchronizes a group of remote Sharefile folders to a local server. The shared files are growing in numbers and now the script has become extremely slow.
What do you advice? Is it possible for example to look only for files having a particular extension (e.g. pdf)?

this is the PS script I'm using at the moment:

$LogFile = "C:\Logs\ShareFile_Sync_log.txt"
New-PSDrive -Name sfdrive -PSProvider ShareFile -Client $sfClient -Root "/"
$ShareFileHomeFolder = "sfdrive:/"
$LocalPath = "C:\MyLocalRootFolder\
Sync-SfItem $ShareFileHomeFolder -Synchronize -Download $LocalPath -Recursive -verbose | Out-file $LogFile -append


Photo of AngeloDV


  • 1 Post
  • 0 Reply Likes

Posted 4 months ago

  • 1

Be the first to post a reply!