Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Xcopy used in postbackup script

Status
Not open for further replies.

koenlibbrecht

Technical User
Apr 4, 2003
4
BE
Hi all,

I am using legato networker version 6 on a windows 2000 server. I want to introduce a script after backup some savesets via the savepnpc option. This script only has to copy a directory and subdirectories to another server. Therefor i try to use the Xcopy command with the /E option. When i make a batchfile using the command :

cmd /c "\\ontwerp\c$\winnt\system32\xcopy \\ontwerp\c$\new \\ontwerp\c$ e/"

cause Xcopy is not an internal command i also tryed :

cmd /c "call \\ontwerp\c$\winnt\system32\xcopy \\ontwerp\c$\new \\ontwerp\c$ e/"

This does not work at all, no error in the logfiles neighter. When i use the Copy command this works fine but i must also copy the subdirectories and hidden files and things like this so the Xcopy is my only option i think.

Anyone who uses this and has a clue for this problem?

Thanks in advance,
Koen

 
Hi,

I don't know why xcopy is giving you problems, but have you tried usam? It 's on every NetWorker client, and preserves permissions, etc..

An example of the syntax would be:

uasm -s -i source | uasm -r -m source = destination

Hope this helps!

-ag100
 
Thanks ag,

The uasm works fine. The only problem i still have now is that the destination is another (windows)server. Seems uasm can copy the files to a volume on the same server but not towards another one. I tried with the \\server\share\directory notation, with the \\ip-adress\share\directory etc but nothing helps. When i run the batch with the uasm command in the commandshell itself, then it works fine.

regards,
Koen
 
Does the user that the Legato services run as have access to write to the remote server?

Legato usually runs as the local administrator, which might not have permission to write to shares on other servers.

Just a thought.
 
I agree with Chapter11. It's most likely a permissions issue, as we've gone from NT server to NT server without any problems. If you're still having problems, try using net use to map a drive from your post processing script, and see if you get any errors.

-ag100
 
Hi ag and chapter,

Thank you both for your help. Indeed it was a matter of permissions. I changed the login for the networker services (default systemroot) to a user known to have full rights at the other server and everything works fine then. But then i run into what seems to be a general bug into the 6.2 version of Networker, that the precmd command blocks the backup due to the tmp file. The only solution i found for this is downgrading to version 6.1.3.

Anyway, i still can make moves to solve this so i keep hoping that soon all will work.

regards,
Koen
 
Hi everyone,

For me also, uasm works very well.

But I don't understand why copy function on a script for NetWorker and xcopy fails such as :

xcopy "%path%"\*.* "%new_path%"\*.* /v/s/f/y > %file_out%

Is there any idea about this ? What's wrong ?

Thanks,
Best regards,

Marc
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top