I am wondering if scp will create the target folder if it does not exist on the remote server. For example, would this work?
scp -r /data/install/somefolder user@ftpserver.com:/data/install/somefolder
Here the folder /data/install/somefolder
doesn't exist on ftp server, so would this command create it?
N.B. I have read about rsync but am not really sure how it works or how to use it yet.