|
File transfer using SCP
I have a shell script which uses SCP command to transfer the files from one server to another server. The files are getting transferred successfully, but the problem is the files transferred to the destination server didnot have the permissions as that of the files on the source server.
Command used: scp file_name username@servername:/dest_directory/
Files permissions on Source server : -rw-r--r--
Files permissions on Destn server : -rw-------
I cannot use "scp -p" or any other variations since there are 40 shell scripts already running daily in the production server(source server)
Please help me to resolve the issue.
Last edited by kumarm; 06-30-2009 at 02:19 PM..
|