Robocopy question using Vista

D

Dick

I use robocopy to backup critical files to my server each night (or
morning). And it works very well. However, I've noticed that if I run the
exact same routine 2 times in a row, it still copies some number of files
each time. Granted it's a small number of files (say 6 out of 200). I'm
just curious if anyone else has noticed this behavior and if you have any
ideas why this happens. I know that none of the files have changed between
to successive runs. I have included the contents of my batch file below
(it's really quite simple):

@echo off
echo .
echo Begin Synchronizing...
echo .
cd c:\Scripts
echo Synchronizing Foo
robocopy "c:\Users\owner\documents\Foo" "\\avalon\Bar" /mir /log:sync.log


Any ideas?

Dick
 
B

Bill ©¿©¬ Yanaire

Theory of Everything said:
not answering directly to your question, but have you seen this?

http://www.mydigitallife.info/2007/05/08/microsoft-robocopy-gui-free-download/
No wonder why you have so much trouble with Vista. You can't even respond
to a post correctly. My advice is to get a book on "Vista for Retards"
study real hard and within 6 years you should have a basic understanding of
Vista so you can perform very basic tasks like understanding Icons, clicking
on icons, running simple programs, etc......
 
F

Frank

Theory said:
There is a very simple way to see who knows more about vista.

That is easy! Who can get one simple install of Vista to run properly.
Guess what...you lost...months ago!
 
R

Ringmaster's Psychiatrist

Theory of Everything said:
There is a very simple way to see who knows more about vista.

lets have the group decide who knows vista better, you or me....

You really sound like a loser. Who the hell would want to prove anything to
an idiot like you? Go back to your Sheep and leave this group right away.
Take that idiot Ringmaster with you. He is the group ****tard and you are
closing in very fast.
 
T

Theory of Nothing

Theory of Everything said:
Ahhh spanky da moron is here.. no need to say anything. the stench from
your dead rotting carcass is passing through the internet.

So your head being placed far up your ass, you think you can smell the
internet? Better take more drugs.

I am merely explaining that there is a way to prove his hypothesis, that
he knows more about vista than me.
If he dares.. lol

Sorry you don't know shit. Why would anyone want to prove anything you
request? You are just a ****ing moron.

Now eat your banana from the rear end.

Sorry. I don't follow your family rules.
 
N

newsgroups.comcast.net

pweegar said:
By any chance, those few files that get re-copied, do they change in
some way on a regular basis? Sounds like Robocopy sees them as being
written to again, thus needing to re-copy them.

pweegar,

No, as I said in the first post I simply run the bat file and then run it
again and I notice that some files are recopied. I first thought that it
might have someting to do with the archive bit, but that doesn't seem to be
the case upon further inspection. It appears to do no harm, I just wondered
if anyone knew why some files are recopied.

Dick
 
S

Synapse Syndrome

Dick said:
I use robocopy to backup critical files to my server each night (or
morning). And it works very well. However, I've noticed that if I run the
exact same routine 2 times in a row, it still copies some number of files
each time. Granted it's a small number of files (say 6 out of 200). I'm
just curious if anyone else has noticed this behavior and if you have any
ideas why this happens. I know that none of the files have changed between
to successive runs. I have included the contents of my batch file below
(it's really quite simple):

@echo off
echo .
echo Begin Synchronizing...
echo .
cd c:\Scripts
echo Synchronizing Foo
robocopy "c:\Users\owner\documents\Foo" "\\avalon\Bar" /mir /log:sync.log

Is it copying the other way though? Is it mirroring back to the original
folder? If it is, it could be doing that as the Modified Dates on the new
copies are later than the originals.

I never use the /MIR switch, as it is too basic. Does it even cater for
newer file versions? If not, you fail to back up valuable data. I use
XXCOPY now a lot more, as it has more options, and can copy over File
Created, Modified and Last Accessed timestamps on files, and all three
timestamps on folders too. The free version prompts you though, so I still
use Robocopy a lot on all scheduled scripting.

ss.
 
S

Synapse Syndrome

Warp 10 said:
I suspect that some files are locked because vista is reading them, and
robocopy "chokes" on those and aborts the procedure,
the first time around.

It won't be anything to do with that, as the files can still be read, and he
said that they are being re-copied.
I have seen that with vista its much harder to unlock files than with
xp... I use a program called unlocker, but it cant do all vista files as
it could wo with xp.

That Unlocker thing sucks, is it requires backup and debug privileges, so
can only be run as administrator, in XP, or you have to seriously weaken
security to give user accounts those privileges (massive no-no). It might
be handy for newbies, but that way of using the computer would lead to bad
security and being affected by malware. That is the whole reason UAC came
about.

ss.
 
D

Dick

Synapse Syndrome said:
Is it copying the other way though? Is it mirroring back to the original
folder? If it is, it could be doing that as the Modified Dates on the new
copies are later than the originals.

I never use the /MIR switch, as it is too basic. Does it even cater for
newer file versions? If not, you fail to back up valuable data. I use
XXCOPY now a lot more, as it has more options, and can copy over File
Created, Modified and Last Accessed timestamps on files, and all three
timestamps on folders too. The free version prompts you though, so I
still use Robocopy a lot on all scheduled scripting.

ss.

Synapse,

The documentation says that /mir is equivalent to /E /PURGE. It is a
one-way copy. In fact, I can run the bat file n times successively and it
still copies the same few files everytime. I am really interested in why
this is. I keep telling myself that it must be something simple.

Dick
 
S

Synapse Syndrome

Dick said:
Synapse,

The documentation says that /mir is equivalent to /E /PURGE. It is a
one-way copy. In fact, I can run the bat file n times successively and it
still copies the same few files everytime. I am really interested in why
this is. I keep telling myself that it must be something simple.

Could you paste the log?

ss.
 
D

Dick

Synapse Syndrome said:
Could you paste the log?

ss.

Synapse,

Here is the log:

-------------------------------------------------------------------------------
ROBOCOPY :: Robust File Copy for Windows
-------------------------------------------------------------------------------

Started : Wed Sep 17 02:00:06 2008

Source : c:\Users\Public\documents\Med Root\
Dest : \\avalon\Med Root\

Files : *.*

Options : *.* /S /E /COPY:DAT /PURGE /MIR /R:1000000 /W:30

------------------------------------------------------------------------------

5 c:\Users\Public\documents\Med Root\
Newer 1304 MWDBList.ADT
0%
100%
62 c:\Users\Public\documents\Med Root\Med\
Newer 11.1 m Mwdep.adt
0.0%
1.1%
75.6%
84.8%
93.5%
99.6%
99.9%
100%
44 c:\Users\Public\documents\Med Root\Med\Reports\
21 c:\Users\Public\documents\Med Root\Med\UReports\

------------------------------------------------------------------------------

Total Copied Skipped Mismatch FAILED Extras
Dirs : 4 0 4 0 0 0
Files : 132 2 130 0 0 0
Bytes : 182.13 m 11.19 m 170.93 m 0 0 0
Times : 0:00:01 0:00:01 0:00:00 0:00:00

Speed : 9773293 Bytes/sec.
Speed : 559.232 MegaBytes/min.

Ended : Wed Sep 17 02:00:07 2008
 
S

Synapse Syndrome

Dick said:
Here is the log:

-------------------------------------------------------------------------------
ROBOCOPY :: Robust File Copy for Windows
-------------------------------------------------------------------------------

Started : Wed Sep 17 02:00:06 2008

Source : c:\Users\Public\documents\Med Root\
Dest : \\avalon\Med Root\

Files : *.*

Options : *.* /S /E /COPY:DAT /PURGE /MIR /R:1000000 /W:30

------------------------------------------------------------------------------

5 c:\Users\Public\documents\Med Root\
Newer 1304 MWDBList.ADT
0%
100%
62 c:\Users\Public\documents\Med Root\Med\
Newer 11.1 m Mwdep.adt
0.0%
1.1%
75.6%
84.8%
93.5%
99.6%
99.9%
100%
44 c:\Users\Public\documents\Med Root\Med\Reports\
21 c:\Users\Public\documents\Med Root\Med\UReports\

------------------------------------------------------------------------------

Total Copied Skipped Mismatch FAILED Extras
Dirs : 4 0 4 0 0 0
Files : 132 2 130 0 0 0
Bytes : 182.13 m 11.19 m 170.93 m 0 0 0
Times : 0:00:01 0:00:01 0:00:00 0:00:00

Speed : 9773293 Bytes/sec.
Speed : 559.232 MegaBytes/min.

Ended : Wed Sep 17 02:00:07 2008


Yes, as I suspected, those two files were copied because they were "Newer".
Since the last Robocopy mirror operation, something has rewritten those two
files, to give them a later File Modified date.

ss.
 
S

Synapse Syndrome

Synapse Syndrome said:
Yes, as I suspected, those two files were copied because they were
"Newer". Since the last Robocopy mirror operation, something has rewritten
those two files, to give them a later File Modified date.


To test, if you close the program that made this .adt file (MediSoft?), even
if it is on a remote computer, I think that you will find that this will
stop happening.

ss.
 
F

Frank

Theory said:
Good in theory. In linux its fairly good by now, and in macosx its
streamlined extremely secure and doesn't even need the stupid UAC.

Don't try to say that UAC is something great because its not. It's a
frikin joke!!!

With crapista err I mean vista, and the way most programs are already
built, vista is a huge headache in so many ways..

Vista is a global reject. If you have not heard this you live under a
rock. A rock with the Microsoft logo etched on it.

An example about vista shit, is quicktime. Without some special reason
when you launch quicktime you get a stupid active X error window.
You may uninstall and install quicktime 1000 times but it will not make
a difference...

after digging, it seems that registry keys don't get the proper
privileges and are LOCKED, the only solution is to run some weird script
that I found... lol

Ok if you are a fanboy you will point figures to apple and quicktime..
ahh.. but this same problem occurs with other programs as well.. like
adobe acrobat.
Perhaps more too... but I hope I don't run into them.




Ok, but please give a solution to people who want to unlock a file
desperately

Its nice talking theory, but the way vista is forced down the throats of
people with new PC's, theory is usless...

Practical solutions are needed.

Vista is the LESS practical OS microsoft has ever made... its quirks
remind me of the linux quirks...

Remember it was the windows fanboys making fun of those same linux
quirks....
Now that vista has them... they still make fun of linux anyway, but they
try to find other reasons.. lol

Fanboys have the learning capacity of broccoli

It's becoming more obvious day by day that you are the most incompetent
users to ever post in any ng.
But keep it up, we're all enjoying the show!...LOL!
 
D

Dick

Synapse Syndrome said:
To test, if you close the program that made this .adt file (MediSoft?),
even if it is on a remote computer, I think that you will find that this
will stop happening.

ss.

Synapse,

The program that uses these files (Medisoft) is located on a lan located
across town. My wife brings a usb stick home with the files on it (for
offsite backup purposes). I then load that file locally and then back that
file up to a backup server (I'm paranoid). Like I said, if I run the bat
file n times in a row, those 2 files will be copied every time. I am not
running the Medisoft program here, so there is nothing to change the files.

Dick
 
A

Alias

Frank said:
It's becoming more obvious day by day that you are the most incompetent
users to ever post in any ng.
But keep it up, we're all enjoying the show!...LOL!

At least we know how to take care of our sheep.
BAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
 
A

Alias

Bill said:
No wonder why you have so much trouble with Vista. You can't even respond
to a post correctly. My advice is to get a book on "Vista for Retards"
study real hard and within 6 years you should have a basic understanding of
Vista so you can perform very basic tasks like understanding Icons, clicking
on icons, running simple programs, etc......

I have Linux for retards. My mom read it to me.
 
A

Albert Lavigne

Dick;

I've been using robocopy for a little while and here are a few ideas for you:

use the /B option with a /w:x /r:x as you probably have some files locked
when robocopy is trying to copy them. The /b will copy those files in a
backup mode.

In addition when you are doing your copy you are loosing all of your network
security. Depending on the version of ROBOCOPY you are using you can use the
/sec option to keep the security in place.

so your command might wind up looking like this:

robocopy "c:\Users\owner\documents\Foo" "\\avalon\Bar" /mir /sec /b /w:5
/r:5 /log:sync.log

also note in your log if it is a new or newer file, those will tell you if
the file has possibly changed since the previous backup or if it was missed
for some reason.

another modification I suggest is add date stamp to your logfile name so you
can go back through history to locate issues.

Good luck
 

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