Sponsored Content
Full Discussion: How to do a move in FTP
Top Forums Shell Programming and Scripting How to do a move in FTP Post 76616 by zylwyz on Wednesday 29th of June 2005 11:15:11 AM
Old 06-29-2005
Data

You can use and this too:
$ ftp
ftp > open site.com
lcd ~/uploads # local navigation
put file.c
get file.c
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

how to move a file from one server to another server using FTP in shell script?

I have a file --> file1.txt i need to copy this file to another server using FTP....the 2 servers are server1 and server2..may i know how to write a script that can do this? thanks in advance! Im a newbie to this... (4 Replies)
Discussion started by: forevercalz
4 Replies

2. Shell Programming and Scripting

ftp: get list of file to get. Retrieve and move them

Hi, I need to get multiple files from an ftp server. Once the files have been downloaded, I need to move them to a different directory on the ftp server. I don't know of a command that would enable me to get a file and then move it (assuming I don't know the exact file name) within ftp. I think... (10 Replies)
Discussion started by: bbabr
10 Replies

3. Shell Programming and Scripting

Unix script to MOVE via FTP a directory

Good afternoon! I need to move a bunch of files from an FTP site to my server. However mget *, dele * will not suffice as I cannot guarantee that new files are not uploaded between commands. Roughly, this is what I would like to do: (using a .netrc) ftp somehost bin prompt cd... (1 Reply)
Discussion started by: abirdd
1 Replies

4. Shell Programming and Scripting

Expect - get, then move files within FTP site?

Trying to do the following, and it looks like Expect is probably my best bet. Any help greatly appreciated 1) Log onto ftp site 2) Go to folder 3) GET all files matching basename*.txt 4) MOVE those files to a subfolder on the ftp site. I don't need to move it on MY computer, I want to move... (2 Replies)
Discussion started by: mbourgon
2 Replies

5. HP-UX

Scripts to move files via FTP with error checking

Hi Members, Can members please advise or suggest how to write UNIX script which move all zip files in source directory and when done delete zip files from source directory? We want to delete only on successful transfer to the destination. secondly want to add some error checking if the FTP... (1 Reply)
Discussion started by: dxj0815
1 Replies

6. Shell Programming and Scripting

After FTP unable to move file to other location

Hi Experts, I am using below script and facing some problems.. cd /home/user/test rm ftp://ftp.log Example: A_Bachfile_09292011.txt A=`ls -1 "A*.txt"` compress $A C=`ls -1 "A*` hostname="test.gmail.com" user="raju" Password="******" ftp -n $hostname <<EOF >>ftp.lpg... (4 Replies)
Discussion started by: rajubollas
4 Replies

7. HP-UX

[Solved] Unable to rename file in ftp server .Net:FTP perl

Hello All, I am trying to connect to ftp server and get the files. Also i need to rename the file in other ftp dir. rename method is not allowing me to rename the file in other dir. When i tried copy command by using net::FTP:FILE then perl says it is not installed. Can some body help me to... (2 Replies)
Discussion started by: krsnadasa
2 Replies

8. Shell Programming and Scripting

Is it possible to move a directory using ftp??

Hi all, Is it possible to move a directory using ftp service?? (2 Replies)
Discussion started by: eeegopikannan
2 Replies

9. Shell Programming and Scripting

How to move the older than 30 file to another ftp server

Hi All I need to move the older than 30 days file to another ftp server. I have source structure like this Files folder Folder1 Folder2 Folder3 I need to create same Target structure and I need to move the older than 30 day file to another ftp server, can you please suggest me how I develop... (1 Reply)
Discussion started by: murari83.ds
1 Replies

10. Shell Programming and Scripting

How to move a file in ftp command to other location?

hi, when i do ftp from unix to laptop which is running a windows os, it lands in a root folder. can i move a file from this root ftp folder to any other location in my laptop say , c:\files\ folder? i used rename command inside ftp , but it says incorrect parameter. (5 Replies)
Discussion started by: Little
5 Replies
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)
All times are GMT -4. The time now is 02:45 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy