Announcement

Collapse
No announcement yet.

Combining two or more tasks

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Combining two or more tasks

    Wonder whether following is possible

    mirror folder1 to backup1
    mirror folder1 to backup2

    combine both tasks (note from same sourcefolder to different backups)
    and run the combined job, no questions asked, i.e. a one click job.

    Thanks
    =

  • #2
    Just do it a a script and run it non-interactively.

    Comment


    • #3
      If you need it in one click with no questions, you would need to set this up as a bc script. Documentation for scripting is in the Help file -> Using Beyond Compare -> Automating with Script.

      A rough example would be:
      bcompare.exe "@c:\bcscript.txt"

      where bcscript.txt is:
      load "c:\folder1" "c:\backup1"
      sync create-empty mirror:left->right
      load "c:\folder1" "c:\backup2"
      sync create-empty mirror:left->right

      Please test with test folders and already backed up data while testing out script. Script actions do not preview before they act, and there is no method to Undo.
      Aaron P Scooter Software

      Comment


      • #4
        Thanks

        The tasks are as follows:
        -
        mirror N:\JPG to K:\Backup1\PVT\JPG
        mirror N:\JPG to Z:\Backup2\PVT\JPG
        -

        See below.





        So it would then read: (for instance)

        JPGSync.bat
        "F:\Beyond Compare\bcompare.exe" "@F:\Beyond Compare\bcscript.txt"

        where bcscript.txt reads as follows

        load "N:\JPG" "K:\Backup1\PVT\JPG"
        sync create-empty mirror:left->right
        load "N:\JPG" "Z:\Backup2\PVT\JPG"
        sync create-empty mirror:left->right


        Something like that?

        Thanks again.
        =

        Comment


        • #5
          Assuming no filters or any other settings, yes, that looks like it.

          You can also add other commands, like
          log verbose "c:\bclog.txt

          as the first line of the script file, to create a log. I would still recommend performing the sync action with test folders first, just to be sure it performs as you expect before using it on live data.
          Aaron P Scooter Software

          Comment


          • #6
            Thanks again.

            Meanwhile, maybe this 'combining one or more tasks' could be something for a new version?
            I.e. add single sessions to a kind of 'multi-session'?

            Introduce something like an [Add to Multi-session] button, which would then actually do what the script is doing, with option to 'First view changes' or 'Proceed without questions'.

            Just an idea...

            What do you think?

            brgds
            =

            Comment


            • #7
              Hello,

              We have a form of multi-session called a Workspace. You can load multiple tabs or windows, then save them together as a Workspace to be loaded later. However, this does not have a one-click to perform a Sync for all open tabs; they would need to be reviewed and synced individually.

              We also have a few ideas for a one-to-multiple comparison on our Customer Wishlist.
              Aaron P Scooter Software

              Comment

              Working...
              X