Two things, firstly I need to copy a backup file from one server to another in the same domain. The file resides on Server1 in d:\folder1\hsi\data\backup. The file name is gams1
I want to copy the file to another server called server2 with the same directory structure d:\folder1\hsi\data\backup.
i.e.
cd d:\folder1\hsi\data\backup
copy gams1bu \\server2\d:\folder1\hsi\data\backup
Secondly, I need to copy a directory and all subdirectories from Server1 to Server2 while maintaining all permissions.
Any help will be appreciated
I want to copy the file to another server called server2 with the same directory structure d:\folder1\hsi\data\backup.
i.e.
cd d:\folder1\hsi\data\backup
copy gams1bu \\server2\d:\folder1\hsi\data\backup
Secondly, I need to copy a directory and all subdirectories from Server1 to Server2 while maintaining all permissions.
Any help will be appreciated