Ignore folder when comparing

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Paul1990
    Visitor
    • Feb 2017
    • 3

    Ignore folder when comparing

    Hello!

    I'm using BC to automate a backup between my PC and NAS box.

    The script is very simple:

    load "E:" "\\STURUGE\Files"

    expand all

    sync mirror:left->right
    I want to add a folder to my NAS box (on the right hand side of the copy). But, I do not want to the script to overwrite or change that folder.

    Is there a way to automate this?

    So maybe an "ignore folder Photos" command?

    Thanks!
  • Aaron
    Team Scooter
    • Oct 2007
    • 15996

    #2
    Hello,

    You can add a filter command with the correct filter syntax to exclude that folder. I would suggest loading these two folders in a Folder Compare in the graphical interface, then right click and Exclude your folder. This will remove it and populate the Filters toolbar with the correct syntax. You can copy and paste the text in the filter bar (-.\pictures\) and paste it into script with quotes:
    Code:
    filter "-.\pictures\"
    and this will apply the same filtering to the rest of the script:
    Code:
    filter "-.\pictures\"
    load "E:" "\\STURUGE\Files"
    expand all
    sync mirror:left->right
    Just in case there's a small syntax error or whitespace/copy error, I recommend testing with a test folder first, just in case your script does not properly exclude the item and accidentally deletes the folder in the destination side.
    Aaron P Scooter Software

    Comment

    Working...