I want to copy a directory (pscp) from windows server to Linux server The target place name on Linux server has to be new each time.When i run the below command,
> pscp -p -l root
> -pw mypassword -r C:\ProgramFiles\Mybackups\root@linux_server:/root/mywindowsbackups/$(date)
The command substitution $(date) doesn't work. can any one suggest how would i run this ?
Try the following: