I am very new to shell scripting,I have some doubts how we can do a file transfer using ftp
I wanted to transfer files using non_secure ftp and secure ftp(sftp) mode,
for secure ftp i am using following code
All variables are hard coded in th begining,How do i can find out IP addrss,username,password and assign those to below mentioned variables $IP ,$user ,$pass dynamically by creting a temp file contains all these information
and how i can perform non-secure FTP Please help me
Thanks in advance
Last edited by Yogesh Sawant; 05-13-2008 at 10:17 AM..
Reason: added code tags
Please help me out. it is very urgent.
when transfering the files from one server to other server if it is failed how to trace the status.
i am using two commands:
cd $SOURCE_FILE_PATH
ftp -niv $SRVR_NAME >> $LOG_PATH/$LOG_FILE << END_FTP
user $USER_ID $PASSWORD
bin
cd $REMOTE_FILE_PATH
! ... (0 Replies)
Hi all
Pls help me this problem in FTP transfer file. I found in var/adm/syslog/syslog.log have some error when transfer file via FTP as below :
Jan 10 12:35:32 ABC ftpd: FTP LOGIN FROM ABCA (Sucessfully Open session )
Jan 10 12:40:48 ABC ftpd: FTP LOGIN FROM ABCA (Sucessfully Open session... (3 Replies)
Hi Guys,
I wanted to transfer files from FTP machine to Linux Machine.
In this, I need to create a batch file that will connect to the Linux Machine and Transfer the files specified as the parameter to the files.
Ex : transferfiles Product Time Geography
Here transferfiles shld contain... (4 Replies)
hi i am doing a passive ftp file transfer . during that i got the following error.
"ftp> put FTPS_MAILBOX
local: FTPS_MAILBOX remote: FTPS_MAILBOX
421 Service not available, remote server has closed connection
Passive mode refused. Turning off passive mode.
No control connection for... (1 Reply)
I am going to transfer file from UNIX directory to remote windows location and i wrote the script but i am getting the error as 'FTP: not found' or i am getting this error 'The file path is not found'.
Please help me to resolve this problem as early as possible.(urgent).
my script is,
... (6 Replies)
Hi all,
I have a file in windows, example
a.txt
****
aaa
bbb
ccc
<empty line>
when i transfer this file to unix using ftp, and viewed the file
# vi a.txt
aaa
bbb
ccc
#
I dont get the empty line which i specified in that file in windows.
Please help me, which in unix... (5 Replies)
Hello All,
How we can capture the FTP file transfer status. I would like do the exceptions handling for the FTP file transfer
My code is something like this...
ftp -nvi $FTP_SRVR |&
print -p user $UID $PWD
print -p cd mydir
print -p put $FILE_NAME
print -p close
print -p bye
... (3 Replies)
Hi ,
I want to transfer file using ftp protocol .
I m using following linux distribution.
LSB Version: :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: OracleVMserver
Description: Oracle VM server release 2.2.0
Release: 2.2.0
Codename: ... (5 Replies)
Hi All,
My PC with Windows XP SP2 has some problem with ftp service.
FTP Server is : Windows Server 2003 Standard R2
The condition is I can log in and also can change ftp server directory,
But I can not listing the file and can not get or put any file.
It will hang and nothing happen until... (4 Replies)
Hi,
I need to transfer 2000 files from one host to another..
I modified /etc/security/limits to -1 and ulimit -f, ulimit -s, ulimit -a..
Even then only 700 files are transferred.
Could You please help me to sort out this issue..
I think some configuration related to memory is... (3 Replies)
Discussion started by: Priya Amaresh
3 Replies
LEARN ABOUT DEBIAN
ftpmirror
FTPMIRROR(8)FTPMIRROR(8)NAME
ftpmirror - Mirroring directory hierarchy using FTP protocol
SYNOPSIS
ftpmirror [package]
DESCRIPTION
ftpmirror is an utility to copy directory hierarchy (usually called 'mirror') using FTP protocol.
A similar perl script exists, whose name is 'mirror', but ftpmirror requires less memory than mirror.
OPTIONS
Please, note that the original documentation about ftpmirror was written originally in japanese. (README.jis and RELEASE.jis)
If you can contribute by translating any aspect of these files, please contact Dario Minnucci <debian@midworld.net>. I'll be glad to
include your contributions here to improve this manual.
Formerly ftpmirror operatio mode was MASTER->SLAVE but seems that since version 1.96 the SLAVE->MASTER (reverse mirror) is supported.
This behaviour can be controlled for each package section in the main configuration file (/etc/ftpmirror/ftpmirror.cf).
MASTER->SLAVE --> get-mode = yes (default)
SLAVE->MASTER --> put-mode = yes
Other configuration flags extracted from original documentation are: (Sorry but most of them are still undocummented.)
todo: (string, default: full-mirror)
verbose:
(boolean, default: no)
log-mask:
(comma separated list)
test-mode:
(boolean, default: no)
ftp-server:
(string)
ftp-gateway:
(string)
ftp-port:
(service, default: ftp)
ftp-bindaddr:
(ip address)
ftp-user:
(string, default: anonymous)
ftp-pass:
(string, default: `whoami`@`hostname`)
ftp-group:
(string)
ftp-gpass:
(string)
ftp-passive:
(boolean, default: no) To enable passive file transfer set ftp-passive to yes.
ftp-idle:
(numeric, default: 0)
ftp-max-idle:
(boolean, default: 0)
ftp-list-method:
(LIST or STAT or STAT-A or STAT-AT, default: STAT)
ftp-timeout:
(numeric, default: 300)
ftp-login-retry:
(numeric)
ftp-login-delay:
(numeric, default: 60)
ftp-stats:
(boolean, default: no)
remote-timezone:
(timezone string, default: undef)
http-proxy:
(string)
server:
(string)
package:
(string)
put-mode:
(boolean, default: no)
unlink:
(boolean or 'rename', default: yes)
unlink-limit:
(size value, default: 0)
ftp-force-mtime:
(boolean, default: no)
ignore-mtime:
(boolean, default: no)
temp-directory:
(pathname, default: $TMPDIR || /tmp)
lock-directory:
(pathname, default: temp-directory)
create-directory:
(boolean, default: yes)
remote-directory:
(string)
local-directory:
(pathname)
master-db-directory:
(pathname)
remote-db-directory:
(pathname)
local-db-directory:
(pathname)
lslR-file:
(string)
lslR-copy:
(pathname)
transfer-file-regexp:
(regexp)
transfer-directory-regexp:
(regexp)
override-file-regexp:
(regexp)
override-directory-regexp:
(regexp)
load-local-dirinfo:
(boolean, default: no)
store-local-dirinfo:
(boolean, default: no)
load-remote-dirinfo:
(boolean, default: no)
override-file-uid:
(uid, default: 0)
override-file-gid:
(uid, default: 0)
override-file-mode:
(octal value, default: 0644)
override-directory-mode:
(octal value, default: 0755)
default-file-uid:
(uid, default: 0)
default-file-gid:
(gid, default: 0)
default-file-mode:
(octal value, default: 0644)
default-directory-mode:
(octal value, default: 0755)
EXAMPLES
ftpmirror provides a 'ready-to-use' sample package for testing porpouses. In order to run the provided test package you need to issue the
following commands (both commands must be run by the same user):
mkdir -p /tmp/upstream
/usr/bin/ftpmirror upstream
This package should copy directory hierarchy from the original author's FTP location (ftp://ftp.intec.co.jp/pub/utils/ftpmirror) to your
local hard drive (/tmp/upstream).
IMPORTANT CONSIDERATION
The inclusion of this configuration is intended to be used ocassionally. Please don't abuse this site.
SEE ALSO
For other supported configuration options see /etc/ftpmirror/ftpmirror.cf where you will find commented examples.
AUTHOR
ftpmirror was originally written by Ikuo Nakagawa <ikuo@intec.co.jp>
This manual page was written by Dario Minnucci <debian@midworld.net>, for the Debian project (but may be used by others).
Dario Minnucci <debian@midworld.net> June 1, 2007 FTPMIRROR(8)