cd Deployment\appRootDir
$sshUser = "barry75"
$sshHost = "barryonweb.com"
$sshPort = 22
$targetDir = "/var/www/appRootDir/"
echo "Copy frontend ...."
$sourceDir = "clientDir"
scp -r -P $sshPort $sourceDir "${sshUser}@${sshHost}:${targetDir}"
echo "Copy backend ...."
$sourceDir = "serverDir"
scp -r -P $sshPort $sourceDir "${sshUser}@${sshHost}:${targetDir}"
echo "Files copied successfully!"
cd ..\.. # back to root