I am wanting to run a simple folder compare script utilizing the MIRROR command, however with "Copy NTFS file permissions". This option is available within the gui but is not when you are scripting. I have also tried to set the option within session defaults.
Is this possible?
Sample Script:
# Turn logging on
log normal "C:\temp\scripts\logs\log_5_output.txt"
# Set comparison criteria
criteria timestamp size
# Exclude certain file types
filter "-*.*~"
# Ignore prompts
option confirm:yes-to-all
# Load the base folders
load "\\us1005-f01\d$\output" "e:\output"
#Make the target identical to the source
#includes deleting files that only exist on the target side
sync create-empty mirror:lt->rt
Is this possible?
Sample Script:
# Turn logging on
log normal "C:\temp\scripts\logs\log_5_output.txt"
# Set comparison criteria
criteria timestamp size
# Exclude certain file types
filter "-*.*~"
# Ignore prompts
option confirm:yes-to-all
# Load the base folders
load "\\us1005-f01\d$\output" "e:\output"
#Make the target identical to the source
#includes deleting files that only exist on the target side
sync create-empty mirror:lt->rt
Comment