ShareFile PowerShell and Windows Task Scheduler for local backup

  • 1
  • Problem
  • Updated 2 months ago
We are trying to accomplish backing up our entire ShareFile structure locally to a NAS. I have this currently setup and running. Only problem is, the task seems to be sporadic on how long it runs. Physically looking over the folder structure and files, I'm seeing that it's not finishing the sync before "Task Completed" as the Task Scheduler History shows. Sometimes it'll run just for a few minutes, other times it'll run for over 24 hours.

From what I can tell, everything is configured correctly, and I've also tested small syncs with success. The task is being ran with a domain account and proper permissions to the NAS for that account. The ShareFile account used is a Super User. Just for further information, this structure is over 2TB.

The Script

Add-PSSnapIn ShareFile
$sfLogin = Get-SfClient -Name "C:\ShareFileBackup\sflogin.sfps"
New-PSDrive -Name SFBackup -PSProvider ShareFile -Root "/" -Client $sfLogin
Sync-SfItem -ShareFilePath "/" -Synchronize -Download -LocalPath "\\wattnas\ShareFile" -Recursive -Strict

The Scheduled Task







Regards,
Barrett

Photo of Barrett Cowan

Barrett Cowan

  • 2 Posts
  • 0 Reply Likes

Posted 3 months ago

  • 1
Photo of Barrett Cowan

Barrett Cowan

  • 2 Posts
  • 0 Reply Likes
Still seeing the same behavior here. Anyone have any input? I have a feeling this may be an issue with the size of the entire structure and the -Strict option possibly. Is there anyway to log, I'm not seeing any options for it?