|
Answer» hey guys, im kinda noob with DOS and almost never used this, and got a question...
I have added some files on the desktop of my windows 2003 server and I need acces to it to make a back up of it. I need to use the Windows XP client. What commands are NEEDED to get acces to this file and copy them?
I used network bootdisks and after I restarted I got into the DOS.
Kind regards, R.You will need to first create a user/password and share at the server 2003 side. Then from the Windows XP side you can create a map to the share using NET USE (available drive letter ) and then server share name hidden with $ & user\password. You then should be able to XCOPY *.* ( copy all contents files and folders from that shared location to a designated area on your Windows XP MACHINE always updating the data upon execution with the latest files ) And you will need to create a folder like Backup on your C: drive of the XP system as the bucket to drop these xcopied files and folders to, such as.
NET USE Z: \\your2003server\sharename$ /user:ValidUserName Password
XCOPY Z:\*.* C:\backup\*.* /s/d/y
NET USE Z: /delete
I would chose a location to store this data other than desktop and create a share there that the XP system can get to. Also note that this batch is an unsecured way of doing this, and a more secured way to do this would be to compile that batch .Bat as an .Exe to hide the user name and password from any users at that system who dont know how to use exe decompiler to view credentials.
Another way to go about the backup you want is to run it from the Server 2003 side and ADD it as a scheduled task to trigger the backup to the XP systems C: drive at a shared location there. Thanks for your quick reply, I will try this ASAP.
|