Hi,
how can I upload a complete folder (and subfolders) on ftp from terminal ?
thanks
Hi,
how can I upload a complete folder (and subfolders) on ftp from terminal ?
thanks
It is easier to pack the directory tree into a tar ball, then send it. Windows XP and higher can open and unpack a tarball. So can any unix box.
tar -cvf mytar.tar /path/to/send/*
echo "
open somenode.com
USER username password
bin
cd /somewhere
put mytar.tar
bye
" | ftp -n > ftplog.txt
ok, and what's the command to unpack a tar from server
Its the same tar command, but with other option to extract.
tar -xvf <TARFILENAME>