xcopy exclude problem

  • Thread starter Thread starter michael
  • Start date Start date
M

michael

i am currently trying to backup a remote folder with the
xcopy command, but do not want to copy over pst files due
to their overwhelming size.

the command is as follows:
xcopy "\\centraldcfp\hmtinc\users" "r:\hmt
inc\users" /d /exclude:.pst /e /v /i /h /r /k /y

my problem is that when i run the command, it returns
can't read file: .pst
and copies nothing.

ive tried a space after the colon, an * before the period,
and i get the same error.

any suggestions?
 
/EXCLUDE:file1[+file2][+file3]...
Specifies a list of files containing strings. Each string
should be in a separate line in the files. When any of the
strings match any part of the absolute path of the file to be
copied, that file will be excluded from being copied. For
example, specifying a string like \obj\ or .obj will exclude
all files underneath the directory obj or all files with the
.obj extension respectively.


I interpret that to mean that you would create a file named "C:\exclude.txt"
(for example) and one of the lines in that file would be .pst.

Ray at work
 
On quick and dirty trick is to just mark all the PDFs as read-only and
run the Xcopy with /C (continue on error) and /Y (yes to overwrite)
but AVOID /r (overwrite read only)
 
muchos gracias.

-----Original Message-----
/EXCLUDE:file1[+file2][+file3]...
Specifies a list of files containing strings. Each string
should be in a separate line in the files. When any of the
strings match any part of the absolute path of the file to be
copied, that file will be excluded from being copied. For
example, specifying a string like \obj\ or .obj will exclude
all files underneath the directory obj or all files with the
.obj extension respectively.


I interpret that to mean that you would create a file named "C:\exclude.txt"
(for example) and one of the lines in that file would be .pst.

Ray at work



michael said:
i am currently trying to backup a remote folder with the
xcopy command, but do not want to copy over pst files due
to their overwhelming size.

the command is as follows:
xcopy "\\centraldcfp\hmtinc\users" "r:\hmt
inc\users" /d /exclude:.pst /e /v /i /h /r /k /y

my problem is that when i run the command, it returns
can't read file: .pst
and copies nothing.

ive tried a space after the colon, an * before the period,
and i get the same error.

any suggestions?


.
 
taco

;]

Ray at work

muchos gracias.

-----Original Message-----
/EXCLUDE:file1[+file2][+file3]...
Specifies a list of files containing strings. Each string
should be in a separate line in the files. When any of the
strings match any part of the absolute path of the file to be
copied, that file will be excluded from being copied. For
example, specifying a string like \obj\ or .obj will exclude
all files underneath the directory obj or all files with the
.obj extension respectively.


I interpret that to mean that you would create a file named "C:\exclude.txt"
(for example) and one of the lines in that file would be .pst.

Ray at work



michael said:
i am currently trying to backup a remote folder with the
xcopy command, but do not want to copy over pst files due
to their overwhelming size.

the command is as follows:
xcopy "\\centraldcfp\hmtinc\users" "r:\hmt
inc\users" /d /exclude:.pst /e /v /i /h /r /k /y

my problem is that when i run the command, it returns
can't read file: .pst
and copies nothing.

ive tried a space after the colon, an * before the period,
and i get the same error.

any suggestions?


.
 
Back
Top