Request: Auto start sync from startup param (command line)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bn880
    Visitor
    • Jan 2015
    • 4

    Request: Auto start sync from startup param (command line)

    Hello,
    I like to use GUI's to set things up and commands to run them. So for example set up a session to sync from/to FTPS in the GUI, save that, and then run bcompare.exe "Session Name" on a schedule.

    Problem is there is no command parameter to actually automatically go ahead with the sync after the compare executes.
    Please add this!

    Scripting entire sessions is very tedious when you are already 90% there with the command line and UI. Cheers.
  • Aaron
    Team Scooter
    • Oct 2007
    • 15997

    #2
    Hello,

    Thanks for the suggestion. A GUI setup for script is on our wishlist. In the meantime, script does let you load a session name with:
    bcompare.exe "@c:\bcscript.txt" "SessionName"

    with bcscript.txt as:
    load "%1"
    sync update:left->right


    Script can load Folder Compare sessions, but not Folder Sync, so you would need to have them saved as a Folder Compare session type.
    Aaron P Scooter Software

    Comment

    • bn880
      Visitor
      • Jan 2015
      • 4

      #3
      Hello, thanks for your reply, good to hear it's on the list.

      I tried this load method earlier today, and it explicitly stated that the Session must be a Compare not a Sync.

      Comment

      • Aaron
        Team Scooter
        • Oct 2007
        • 15997

        #4
        Correct. Scripting does not support loading a Folder Sync session, but Folder Compare sessions can have the base folders, filters, criteria, etc set. Then perform a specific sync on the saved Compare session. In the graphical interface, in a saved Folder Compare session, you can go to the Actions menu -> Synchronize -> Update Left to Right to preview these steps in the GUI.
        Aaron P Scooter Software

        Comment

        • bn880
          Visitor
          • Jan 2015
          • 4

          #5
          Originally posted by Aaron
          Correct. Scripting does not support loading a Folder Sync session, but Folder Compare sessions can have the base folders, filters, criteria, etc set. Then perform a specific sync on the saved Compare session. In the graphical interface, in a saved Folder Compare session, you can go to the Actions menu -> Synchronize -> Update Left to Right to preview these steps in the GUI.
          Thank you, that worked splendidly!

          Sample:
          Code:
          log normal append:"Sync-%date%.log"
          
          option confirm:yes-to-all
          load "My Folder Compare Session"
          
          expand all
          folder-report layout:side-by-side  options:display-mismatches,include-file-links,column-attributes,column-timestamp,column-size output-to:"SyncReport-%date%.txt"
          
          sync create-empty mirror:right->left
          Maybe I don't even need the dual load for report + sync, but irrespective, it works .
          Last edited by bn880; 22-Jan-2015, 05:50 PM. Reason: Removed needless dual load and create option

          Comment

          • Aaron
            Team Scooter
            • Oct 2007
            • 15997

            #6
            Hello,

            You don't need to load twice. You can generate the report then immediately go to sync. You also do not need the 'create' parameter on the load line. This would be useful if you were loading 2 folder locations, but since you are loading a saved session, you wouldn't want to continue if for some reason that session wasn't found.
            Aaron P Scooter Software

            Comment

            • bn880
              Visitor
              • Jan 2015
              • 4

              #7
              Thanks for the info, will fix that up.

              Comment

              Working...