Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2004
    Location
    Edmonton, Alberta Canada
    Posts
    14

    Question Problem with cutoff days feature

    Not sure what I am missing, when I set the days filter thru the GUI things work, however when I do this in scripting something is not working. The filters for the file formats are working, however the date / cutoff filter is not. I am trying to keep all files created in the past 515 days and are of the following file formats listed. After the sync's happen the mirror function is still leaving older files and folders behind. The folder structure is many different subfolders in the base folder with folders / folder structure within them containing the files I would like to copy over. I am also using the latest 64bit version/release. What could I be missing...My syntax below is:

    criteria timestamp:2sec;IgnoreDST size
    option confirm:yes-to-all

    filter cutoff:<515days;*.pdf;*.jpg;*.gif
    Load create:lt "C:\LocalFiles\Images" "\\server\Images"
    sync create-empty mirror:rt->lt

    Thanks for your assistance...
    Last edited by MarcelFortin; 20-Sep-2017 at 08:58 AM.

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

    Default

    Hello,

    Each filter would be a separate, sequential line to apply both a timestamp and name filter:

    criteria timestamp:2sec;IgnoreDST size
    option confirm:yes-to-all

    filter cutoff:<515days
    filter "*.pdf;*.jpg;*.gif"
    Load create:lt "C:\LocalFiles\Images" "\\server\Images"
    sync create-empty mirror:rt->lt


    Double check with test folders first, as scripting offers no preview and no undo. How does this work for you?
    Aaron P Scooter Software

  3. #3
    Join Date
    Oct 2004
    Location
    Edmonton, Alberta Canada
    Posts
    14

    Default

    This should work, I was always under the understanding that if you applied another filter it would replace the previous one. So it sounds like an exception is with the cutoff filter maybe??. Thanks for this I will try this out and see if it works...

  4. #4
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    11,373

    Default

    You are remembering correctly: if you use the same type of filter twice (two name filters in a row) then the later filter overwrites the first.
    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
  •