Today I spent some time finishing a script to backup some files remotely.
I decided to use ncftpput for file transfer. I created a backupop user on the target server and tried to backup:
ncftpput -u backupop -p somepass ftp.targetserver.net /storage/backupop archive.tar.bz2
/storage/backupop being the home directory of the user backupop.
I got the error:
ncftpput: Could not change to directory /storage/backupop: server said: storage: No such file or directory
I changed this into:
ncftpput -u backupop -p somepass ftp.targetserver.net ./ archive.tar.bz2
and it is working.
Link to this post!