|
View:
New views
9 Messages
—
Rating Filter:
Alert me
|
|
|
robocopy /MIR keeps copying NEWERWe have a NAS that users are allowed to store extra data to.
I am doing backups of my PST files to my network share using: >robocopy <source> <destination> /MIR EVERY time I run this, even if there is no change in the files, it sees the source as being NEWER and copies the files over. I'll assume this is because our NAS is strange (long story). The NAS may have a time difference or not allowing perameters copied that tells "newer". To work around this, I want to ONLY COPY if the file sizes are different. I can't seem to figure this out. How do I tell robocopy to ONLY COPY if the file sizes between source and destination are different? Thanks, -Allen |
|
|
Re: robocopy /MIR keeps copying NEWEROn Tue, 16 Sep 2008 14:18:21 -0000, "umayxa3" <umayxa3@...> wrote:
>We have a NAS that users are allowed to store extra data to. >I am doing backups of my PST files to my network share using: >>robocopy <source> <destination> /MIR > >EVERY time I run this, even if there is no change in the files, it sees >the source as being NEWER and copies the files over. > >I'll assume this is because our NAS is strange (long story). The NAS >may have a time difference or not allowing perameters copied that >tells "newer". Are the drives a mixture of FAT and NTFS? Have you tried adding /FFT |
|
|
Re: robocopy /MIR keeps copying NEWERThat's the ticket!
Works perfect using /MIR /FFT Thanks! -Allen --- In batchworld@..., foxidrive <foxidrive@...> wrote: > > On Tue, 16 Sep 2008 14:18:21 -0000, "umayxa3" <umayxa3@...> wrote: > > >We have a NAS that users are allowed to store extra data to. > >I am doing backups of my PST files to my network share using: > >>robocopy <source> <destination> /MIR > > > >EVERY time I run this, even if there is no change in the files, it sees > >the source as being NEWER and copies the files over. > > > >I'll assume this is because our NAS is strange (long story). The NAS > >may have a time difference or not allowing perameters copied that > >tells "newer". > > Are the drives a mixture of FAT and NTFS? > > Have you tried adding /FFT > |
|
|
Re: robocopy /MIR keeps copying NEWERI spoke too soon :(
It doesn't work when copying across the network. It still shows the local files as being NEWER. Even if I run once and again right afterwards, it copies all the data. I only want to copy if: FILE SIZE IS NOT EQUAL Any suggestions how to make this happend? Thanks, -Allen --- In batchworld@..., "umayxa3" <umayxa3@...> wrote: > > That's the ticket! > > Works perfect using /MIR /FFT > > Thanks! > > -Allen > > --- In batchworld@..., foxidrive <foxidrive@> wrote: > > > > On Tue, 16 Sep 2008 14:18:21 -0000, "umayxa3" <umayxa3@> wrote: > > > > >We have a NAS that users are allowed to store extra data to. > > >I am doing backups of my PST files to my network share using: > > >>robocopy <source> <destination> /MIR > > > > > >EVERY time I run this, even if there is no change in the files, > sees > > >the source as being NEWER and copies the files over. > > > > > >I'll assume this is because our NAS is strange (long story). The > NAS > > >may have a time difference or not allowing perameters copied that > > >tells "newer". > > > > Are the drives a mixture of FAT and NTFS? > > > > Have you tried adding /FFT > > > |
|
|
ANSWER: Re: robocopy /MIR keeps copying NEWERI think I found my answer:
~=~=~=~=~=~=~=~=~=~=~=~=~ @echo off if NOT %~z1 == %~z2 ( echo DO NOTHING ) ELSE ( echo DO ROBOCOPY ) ~=~=~=~=~=~=~=~=~=~=~=~=~ I'll obviously change the "echo" to my Robocopy script. I then call it like this: >docopy.bat C:\my_local_pst_file.pst L:\my_remote_pst_file.pst If they have the same file size, do nothing. If they are different, kick off the Robocopy script. I'll be testing this at work today and follow up if this doesn't work. -Allen --- In batchworld@..., "umayxa3" <umayxa3@...> wrote: > > We have a NAS that users are allowed to store extra data to. > I am doing backups of my PST files to my network share using: > >robocopy <source> <destination> /MIR > > EVERY time I run this, even if there is no change in the files, it sees > the source as being NEWER and copies the files over. > > I'll assume this is because our NAS is strange (long story). The NAS > may have a time difference or not allowing perameters copied that > tells "newer". > > To work around this, I want to ONLY COPY if the file sizes are > different. > > I can't seem to figure this out. How do I tell robocopy to ONLY COPY if > the file sizes between source and destination are different? > > Thanks, > > -Allen > |
|
|
Re: Re: robocopy /MIR keeps copying NEWEROn Tue, 07 Oct 2008 12:30:27 -0000, "umayxa3" <umayxa3@...> wrote:
>I spoke too soon :( >It doesn't work when copying across the network. It still shows the >local files as being NEWER. Even if I run once and again right >afterwards, it copies all the data. > >I only want to copy if: FILE SIZE IS NOT EQUAL > >Any suggestions how to make this happend? From memory XXcopy can do that - it seems Robocopy does not have that feature. http://www.xxcopy.com Your batch syntax will only work if you can create a list of exclude files that Robocopy can handle. I don't know Robocopy well enough but I don't think a simple text file list is enough for it. |
|
|
RE: Re: robocopy /MIR keeps copying NEWERHi All, This is my first email in this group. even though i got lots of usefull resources from this group, but recently getting into the batch files. at the moment i need a script that can print to a local printer and as well to a network printer that has ipp protocol. Any help would be greatly appreciated Thanks [Non-text portions of this message have been removed] |
|
|
Re: Re: robocopy /MIR keeps copying NEWERHello Omer.Try something on the lines of:
type PrintMe.txt >> prn Where you need to print the entire contents of the file directly. However, if you wish to print something like the rendered html file, this will not work (it is expected to print the html source instead). Parag P. Doke http://paragpdoke.blogspot.com Save paper, save trees. Do not print emails/documents unless absolutely necessary. On Thu, Aug 27, 2009 at 9:13 AM, Omer Mohammed <omer_161@...> wrote: > > > > > Hi All, > > This is my first email in this group. even though i got lots of usefull > resources from this group, but recently getting into the batch files. > > at the moment i need a script that can print to a local printer and as well > to a network printer that has ipp protocol. > > Any help would be greatly appreciated > > Thanks > > [Non-text portions of this message have been removed] > > > [Non-text portions of this message have been removed] |
|
|
ANSWER: Re: robocopy /MIR keeps copying NEWERJust to let you know you have encountered a defect in your nas product, Windows OS from 2000 on employ a time stamp with a 64 bit value, some samba based NAS devices run an older samba code base that can return a 32 bit or 64 bit timestamp depending on the smb call done.
Robocopy and the windows host are expecting a 64 bit timestamp and your NAS device returned a 32 bit value. If you have support on this device I would open a ticket with your vendor as they have a defect in their product causing you needless pain. --- In batchworld@..., "umayxa3" <umayxa3@...> wrote: > > I think I found my answer: > > ~=~=~=~=~=~=~=~=~=~=~=~=~ > @echo off > if NOT %~z1 == %~z2 ( echo DO NOTHING ) ELSE ( echo DO ROBOCOPY ) > ~=~=~=~=~=~=~=~=~=~=~=~=~ > I'll obviously change the "echo" to my Robocopy script. > > I then call it like this: > >docopy.bat C:\my_local_pst_file.pst L:\my_remote_pst_file.pst > > If they have the same file size, do nothing. If they are different, > kick off the Robocopy script. > > I'll be testing this at work today and follow up if this doesn't work. > > -Allen > > --- In batchworld@..., "umayxa3" <umayxa3@> wrote: > > > > We have a NAS that users are allowed to store extra data to. > > I am doing backups of my PST files to my network share using: > > >robocopy <source> <destination> /MIR > > > > EVERY time I run this, even if there is no change in the files, it sees > > the source as being NEWER and copies the files over. > > > > I'll assume this is because our NAS is strange (long story). The NAS > > may have a time difference or not allowing perameters copied that > > tells "newer". > > > > To work around this, I want to ONLY COPY if the file sizes are > > different. > > > > I can't seem to figure this out. How do I tell robocopy to ONLY COPY if > > the file sizes between source and destination are different? > > > > Thanks, > > > > -Allen > > > |
| Free embeddable forum powered by Nabble | Forum Help |