xcopy exclude problem

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?
 
R

Ray at

/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
 
H

Herb Martin

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)
 
G

Guest

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?


.
 
R

Ray at

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?


.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top