Announcement

Collapse
No announcement yet.

using BC2 for file promotion

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

  • using BC2 for file promotion

    Hello all,

    I'm sure that this is do-able, but I can't figure out how to do this in BC2. I have been unable to find any examples of copying a number of files.

    I need to promote a list of files from Dev to Prod. I can't just do a compare, because there are multiple developers, so I have to work off of my list.

    Sample list:

    www/admin/authsearch.cfm
    www/admin/authWizard.cfm
    www/admin/com/auth.cfc
    www/admin/display/dsp_authSearchRs.cfm
    www/admin/events/evt_authSearch.cfm

    The location for www is different on Dev and prod.

    This is what I have so far:

    # Turn logging on
    log normal "C:\Users\K\Documents\BeyondCompare\Logs\beyondcom pare.txt"
    # Set comparison criteria
    criteria binary
    # Exclude certain file types
    #filter "-*.*~"
    # Load the base folders, left is dev, right is prod
    load "\\web-dev5\websites\dev\clientName\www" "\\web-prod\websites\clientName\www"

    I'm not sure if I have to use a select for each file, or if I can just use copy?

    Thanks,
    Kathryn

  • #2
    Hello,

    Would you be able to load up the comparison in the graphical interface, and then build a file filter that only shows the files you want to select?
    Maybe something similar to:
    "./admin/authsearch.cfm;./admin/authWizard.cfm;./admin/com/auth.cfc;etc"
    Once you have the filter set, you can copy and paste it from the filter text box in the upper right corner into the script (with quotes around it).

    Then, under the load statement, issue:
    expand all
    select all.files

    or
    left.diff.files left.newer.files left.older.files

    Depending on what you would like to select. Please test any copy methods on test files or already backed up files. Any copy, move, or delete is not undo-able in the graphical interface or scripting.
    Aaron P Scooter Software

    Comment

    Working...
    X