Announcement

Collapse
No announcement yet.

FTP to FTP compare

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

  • Chris
    replied
    Re: FTP to FTP compare

    This is probably due to the "select" command, and the comparison criteria used.

    If you don't specify comparison criteria, Beyond Compare will use timestamp and size comparison.

    The "select diff.files" command will select files that only have differences other than timestamp differences. With the default criteria, this will select files that have matching timestamps but different sizes.

    In your example the output means there probably isn't anything selected.

    Try changing your select command to "select newer.files older.files diff.files". This will select files with a timestamp or size difference for your report.

    Leave a comment:


  • Mincom
    replied
    Re: FTP to FTP compare

    Hi

    This is a copy of the script showing the expand all function:
    # Turn logging on
    log normal "C:\comparison\Synclog.txt
    # Load the base folderscriteria rules-based
    load "ftp://mincomcmassword@[IPADDRESS]//projects/mincom/ellipse/v5_2_3_8_drp" "ftp://mincomcmassword@[IPADDRESS]//projects/mincom/ellipse/v5_2_3_8_dev"
    expand all
    select diff.files
    #This will compare the differences of the files.
    file-report title:"drp_to_dev" layout:side-by-side options:ignore-unimportant,display-mismatches output-to:"c:\temp\dave\drp_to_dev.html" output-options:html-color

    and this is the output file.
    drp_to_dev
    Produced: 2008/03/10 08:13:39 AM

    Mode: Just Differences
    Left base folder: ftp://mincomcm@[IPADDRESS]//projects/mincom/ellipse/v5_2_3_8_drp
    Right base folder: ftp://mincomcm@[IPADDRESS]//projects/mincom/ellipse/v5_2_3_8_dev

    and there is nothing under the comparison folder. Please can you assist.

    Thanks
    Dave

    Leave a comment:


  • Chris
    replied
    Re: FTP to FTP compare

    Dave,

    Make sure you have the "expand all" line in your script. Without this command, it will not find differences in subfolders.

    Leave a comment:


  • Mincom
    replied
    Re: FTP to FTP compare

    Hi

    It is now running but it doesn't seem to be checking for differences in the directories below the main directory.

    Thanks
    Dave

    Leave a comment:


  • Chris
    replied
    Re: FTP to FTP compare

    Try using this modified script:

    Code:
    # Turn logging on
    log normal "C:\comparison\Synclog.txt"
    # Load the base folders
    criteria rules-based
    load "ftp://username:password@[IPADDRESS]//projects/mincom/ellipse/v5_2_3_8_drp" "ftp://username:password@[IPADDRESS]//projects/mincom/ellipse/v5_2_3_8_dev"
    expand all
    select diff.files
    #This will compare the differences of the files.
    file-report title:"drp_to_dev" layout:side-by-side options:ignore-unimportant,display-mismatches output-to:"c:\temp\dave\drp_to_dev.html" output-options:html-color
    Rules-based comparison can be a little slow over an FTP connection, so if the above script isn't fast enough, you can try changing the comparison criteria.
    Code:
    # Turn logging on
    log normal "C:\comparison\Synclog.txt"
    # Load the base folders
    criteria size
    load "ftp://username:password@[IPADDRESS]//projects/mincom/ellipse/v5_2_3_8_drp" "ftp://username:password@[IPADDRESS]//projects/mincom/ellipse/v5_2_3_8_dev"
    expand all
    select diff.files
    #This will compare the differences of the files.
    file-report title:"drp_to_dev" layout:side-by-side options:ignore-unimportant,display-mismatches output-to:"c:\temp\dave\drp_to_dev.html" output-options:html-color

    Leave a comment:


  • Mincom
    started a topic FTP to FTP compare

    FTP to FTP compare

    HI

    We need to compare changes from one ftp site to another. We can do this manually and now we would like to automate this function. I have tried to write a script that will do this but I am falling short some where. Here is the script that I have written.

    # Turn logging on
    log normal "C:\comparison\Synclog.txt"
    # Load the base folders
    load "ftp://usernameassword@[IPADDRESS]//projects/mincom/ellipse/v5_2_3_8_drp" "ftp://usernameassword@[IPADDRESS]//projects/mincom/ellipse/v5_2_3_8_dev"
    select all.files
    #This will compare the differences of the files.
    file-report title:"drp_to_dev" layout:side-by-side output-to:"c:\temp\dave\drp_to_dev.html" options:display-mismatches

    What we want this script to output is just the mismatches. Please can someone help.

    Thanks
    Dave
Working...
X