Automated sync not deleting empty folders on target

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mikejancar
    New User
    • Nov 2012
    • 2

    Automated sync not deleting empty folders on target

    I've setup a set of nightly scripts to run to sync a number of folders. The logs are saying that the jobs run successfully, however there are empty folders on the target that are not being deleted. I've included the script from one of the offending jobs. Are these settings correct? If it's a permissions issue, wouldn't the script fail with some sort of error message if it can't delete the empty folders? Thanks in advance.

    Code:
    log normal append:"C:\Bin\Log\Sync-Pictures.log"
    criteria timestamp
    option confirm:yes-to-all
    load I:\Pictures \\homenas\photo
    sync create-empty mirror:left->right
  • Aaron
    Team Scooter
    • Oct 2007
    • 16017

    #2
    Hello,

    Are the folders actually empty, or are there filtered out files inside? If you load your two folders in the Folder Compare graphical interface, then enable the Suppress Filters button, do hidden items appear?

    If so, these are likely Protected Operating system files, which you can disable with a saved session or the script command:
    filter include-protected
    above the load I:\ \homenas script line.

    However, before testing the below script, I *strongly* recommend using it on a pair of test folders or already backed up folders, in case it shows data you do not expect and then deletes it (according to script logic).

    log normal append:"C:\Bin\Log\Sync-Pictures.log"
    option confirm:yes-to-all
    criteria timestamp
    filter include-protected
    load I:\test \\homenas\test
    sync create-empty mirror:left->right
    Aaron P Scooter Software

    Comment

    • mikejancar
      New User
      • Nov 2012
      • 2

      #3
      That was it, Aaron. Thanks alot for the help!

      Comment

      Working...