Discussion
Help I'm using xcopy to backup files from one server to another and I want to exclude a folder or two at present this text (with xcopy out to see what it going to do) still lists the J:EMAilbackup folder which I do not want to copy.
How do I amend it to not copy the email folder?
Current batch file is:
xcopy j: z: /o/x/e/k/h/l/f/i/y/d/exclude:>xcopy.out
"j:EMailBackup"
Any help appreciated, I've tried differnt permutations on the file path as well
How do I amend it to not copy the email folder?
Current batch file is:
xcopy j: z: /o/x/e/k/h/l/f/i/y/d/exclude:>xcopy.out
"j:EMailBackup"
Any help appreciated, I've tried differnt permutations on the file path as well
haven't got time to look for you
try this link www.robvanderwoude.com/index.html
he's very good and has helped in the past
>> Edited by Jay-Aim on Wednesday 28th July 18:39
try this link www.robvanderwoude.com/index.html
he's very good and has helped in the past
>> Edited by Jay-Aim on Wednesday 28th July 18:39
fish said:
Help I'm using xcopy to backup files from one server to another and I want to exclude a folder or two at present this text (with xcopy out to see what it going to do) still lists the J:EMAilbackup folder which I do not want to copy.
How do I amend it to not copy the email folder?
Current batch file is:
xcopy j: z: /o/x/e/k/h/l/f/i/y/d/exclude:>xcopy.out
"j:EMailBackup"
Any help appreciated, I've tried differnt permutations on the file path as well
Wrong order. The '>' symbol redirects output. The folder name should therefore come before '>'.
D
fish said:
(with xcopy out to see what it going to do)
_DJ_ said:
Wrong order. The '>' symbol redirects output. The folder name should therefore come before '>'.
He wants to capture the output of the command - I think the PistonHeads sanitizer has interfered with the original meaning.
> xcopy source destination /{lots_of_parameters} /EXCLUDE:exclude_list.txt > output.txt
Where:
exclude_list.txt is a file CONTAINING a list of files to exclude
And:
output.txt contains a report of what happened
I only added the >xcopy.out to create a list of files rather than actually do it as a test.
The above text does work but the list that is generated still shows the email stuff. I've read the notes etc but can't understand what it means by listing the exclusions as seperate string on their own lines.
Could anyone amend my origional to exclude a number of sample folders?
Cheers
The above text does work but the list that is generated still shows the email stuff. I've read the notes etc but can't understand what it means by listing the exclusions as seperate string on their own lines.
Could anyone amend my origional to exclude a number of sample folders?
Cheers
Xcopy command along the line of this but with your options
XCOPY /R /E /Y "c:\somdirsome\file" "d:\somedir" /exclude:c:\xcopyexclude.txt
Then create a text file called xcopyexclude.txt (for above example) which contains a list of excludes each on its own line eg.
\emaildir\
*.txt
*.msg
The first line exludes any path with emaildir in it
The second exclude any .txt file etc
Does that work for you?
>> Edited by malman on Thursday 29th July 15:14
XCOPY /R /E /Y "c:\somdirsome\file" "d:\somedir" /exclude:c:\xcopyexclude.txt
Then create a text file called xcopyexclude.txt (for above example) which contains a list of excludes each on its own line eg.
\emaildir\
*.txt
*.msg
The first line exludes any path with emaildir in it
The second exclude any .txt file etc
Does that work for you?
>> Edited by malman on Thursday 29th July 15:14
Gassing Station | Computers, Gadgets & Stuff | Top of Page | What's New | My Stuff






