Operating System - Tru64 Unix
1752671 Members
5791 Online
108789 Solutions
New Discussion юеВ

Re: transfer data files from server to another

 
Mohammad_14
Occasional Advisor

transfer data files from server to another

Hello everybody:
I have several directories each one contains alot of data files, i need to write a script that read directory name and send each data file inside this directory via ( ftp ) into another output directory on another server, input and output directories and the second distination server with username and password, all these are variables.

VARIABLES ARE:
1- source directory name that contains data files
2- distination directory name
3- distination server name or IP address
4- user name and password to be used in the ftp command for the distination server.

any help
thanx to all
4 REPLIES 4
Venkatesh BL
Honored Contributor

Re: transfer data files from server to another

a simple "rcp" program wouldn't help?
Mohammad_14
Occasional Advisor

Re: transfer data files from server to another

will rcp program send folders between different platforms? i.e from unix to windows or from unix to linux?

if yes then it would sure help
Francisco Pavon
New Member

Re: transfer data files from server to another

you can try rsync. It's a flexible tool to syncronize files betwen various plataforms.

http://rsync.samba.org
Alexey Borchev
Regular Advisor

Re: transfer data files from server to another

Another option is Gzip or TAR or vdump (with compression, if needed) the whole directory with files into one file, then rcp or ftp the file to remote host, then uncompress (if needed).
The fire follows shedule...