Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2017
    Posts
    3

    Default 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!

  2. #2
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    11,944

    Default

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •