Script help to honor deletes

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cwiebe
    Visitor
    • Apr 2007
    • 6

    Script help to honor deletes

    I'd like to create a script that is similar to the MS Sync tool.

    I'd like changes/updates to be sync'd from PCA and PCB.

    Deletions from PCA would also be deleted on PCB.

    I can't figure out how to do this, I'm hoping some smart person here can get me pointed in the right direction.

    Thanks!
    Cliff
  • cwiebe
    Visitor
    • Apr 2007
    • 6

    #2
    This might help,
    What I'm trying to accomplish is:
    Sync Updated files in both directions, removed orphaned files on the right

    Can BC do this?
    Any takers please?

    Comment

    • cwiebe
      Visitor
      • Apr 2007
      • 6

      #3
      Still no takers?
      Here's what I have. I have a NAS device that might be updated from multiple PC's. So I want the latest document to be sync'd across all PC's running the script. But if I delete a file from the PC, I also want it removed from the NAS

      The script is:

      option confirm:yes-to-all
      # Turn Logging On
      log verbose "c:\bin\_SyncLog.txt"

      # Load up first two folders
      load "C:\Documents and Settings\Administrator\My Documents\" "\\dns-323\volume_1\docs\"
      select rt.orphan.files
      delete rt

      sync update:all

      This script does NOT remove orphans from the NAS. Does anyone have any suggestions what I may be doing wrong here?
      TIA

      Comment

      • Zoë
        Team Scooter
        • Oct 2007
        • 2666

        #4
        Try adding an "expand all" command right after the "load" command.
        Zoë P Scooter Software

        Comment

        • cwiebe
          Visitor
          • Apr 2007
          • 6

          #5
          Damn! That did it. Thanks Craig. Sometimes we can't see what's right in front of us.

          Comment

          Working...