Quantcast
Channel: Sharing my technical experience » path
Viewing all articles
Browse latest Browse all 3

ncftpput path is relative to the home directory

$
0
0

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.


Viewing all articles
Browse latest Browse all 3

Trending Articles