Synchronising two folders

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • PeterC
    New User
    • Sep 2015
    • 2

    Synchronising two folders

    Hi, I am trying to sync a local folder and a network folder for the purposes of obtaining a backup. I have the following script:

    # Turn logging on.
    log normal "C:\My Log.txt"
    # Load the Call Recording Backup session
    load "CallRecordingBk"
    # Copy different files left to right,
    sync update:lt->rt


    The script doesn't work and the log file says:

    01/09/2015 16:34:47 *** Beyond Compare 4 Evaluation -- 25 days remaining ***
    01/09/2015 16:34:47 >> # Turn logging on.
    01/09/2015 16:34:47 >>
    01/09/2015 16:34:47 >> log normal "C:\My Log.txt"
    01/09/2015 16:34:47 >>
    01/09/2015 16:34:47 >> # Load the Call Recording Backup session
    01/09/2015 16:34:47 >>
    01/09/2015 16:34:47 >> load "CallRecordingBk"
    01/09/2015 16:34:47 Fatal Scripting Error: Loaded session must be Folder Compare session
    01/09/2015 16:34:47 Script completed in 0.00 seconds


    Any help would be much appreciated.

    Thanks,
    Peter

    01/09/2015 16:34:47 Fatal Scripting Error: Loaded session must be Folder Compare session
    01/09/2015 16:34:47 Script completed in 0.00 seconds
  • Aaron
    Team Scooter
    • Oct 2007
    • 16026

    #2
    Hello,

    The graphical interface has two main Folder views: a Folder Compare session or a Folder Sync session.
    The Folder Compare session contains the sync actions, as well as various other compare tools, while the Sync session offers fewer options to focus on just the sync.

    Scripting supports loading either a pair of folders or a saved Folder Compare session, but does not support loading a Folder Sync. You can convert your Sync to a Compare by loading it in the graphical interface, then use the Session menu -> Compare Base Folders. This will launch a new tab as a Folder Compare session, which you can then Session menu -> Save Session As.
    Aaron P Scooter Software

    Comment

    • PeterC
      New User
      • Sep 2015
      • 2

      #3
      Hi Aaron,

      Thanks for the quick response. That worked perfectly, thank you very much!

      Best regards,
      Peter

      Comment

      Working...