Je cale sur une commande FTP sous Linux

Consultez la formation à Google Analytics de WebRankInfo / Ranking Metrics

sdamain
WRInaute passionné
WRInaute passionné
 
Messages: 1277
Inscription: 14 Oct 2003

Je cale sur une commande FTP sous Linux

Message le Mer Nov 23, 2005 11:49

Bonjour à tous,

Je souhaites transférer plusieurs centaines de Mb de données d'un serveur FTP directement sur mon serveur dédié.

Je me connecte donc en SSH sur mon server dédié, je me mets dans le répertoire où je souhaite enregistrer les fichiers sur mon serveur, puis j'initialise une connection FTP à ce serveur distant.
Je dois ensuite trouver la commande qui va me permettre de faire un GET de tous les fichiers et répertoires distants, mais je cale...
Si quelqu'un pouvait m'aider ce serait sympa :wink:

Sébastien.


LeMulotNocturne
WRInaute impliqué
WRInaute impliqué
 
Messages: 674
Inscription: 1 Juin 2005

Message le Mer Nov 23, 2005 11:59

mget, tout simplement :wink:
par contre c'est pas récursif à ma connaissance... :?

sdamain
WRInaute passionné
WRInaute passionné
 
Messages: 1277
Inscription: 14 Oct 2003

Message le Mer Nov 23, 2005 12:08

Quelle est la synthaxe exacte que je dois utiliser pour transférer tous les fichiers distants en prenant en compte les fichiers et les répertoires (sans devoir confirmer que je souhaite bien transférer le fichier entre chaque transfert).

Merci.


LeMulotNocturne
WRInaute impliqué
WRInaute impliqué
 
Messages: 674
Inscription: 1 Juin 2005

Message le Mer Nov 23, 2005 12:19

il faut lancer le ftp avec l'option -i

Code: Tout sélectionner
FTP(1)                                                                                                                     FTP(1)

NAME
       ftp - ARPANET file transfer program

SYNOPSIS
       ftp [-v] [-d] [-i] [-n] [-g] [-k realm] [-f] [-x] [-u] [-t] [host]

DESCRIPTION
       FTP  is the user interface to the ARPANET standard File Transfer Protocol.  The program allows a user to transfer files to
       and from a remote network site.

OPTIONS
       Options may be specified at the command line, or to the command interpreter.

       -v     Verbose option forces ftp to show all responses from the remote server, as well as report on data transfer  statis-
              tics.

       -n     Restrains ftp from attempting ‘‘auto-login’’ upon initial connection.  If auto-login is enabled, ftp will check the
              .netrc (see below) file in the user’s home directory for an entry describing an account on the remote machine.   If
              no  entry  exists,  ftp  will  prompt  for the remote machine login name (default is the user identity on the local
              machine), and, if necessary, prompt for a password and an account with which to login.

       -u     Restrains ftp from attempting ‘‘auto-authentication’’ upon initial connection.  If auto-authentication is  enabled,
              ftp  attempts  to  authenticate to the FTP server by sending the AUTH command, using whichever authentication types
              are locally supported.  Once an authentication type is accepted, an authentication protocol will proceed by issuing
              ADAT commands.  This option also disables auto-login.

       -i     Turns off interactive prompting during multiple file transfers.

       -d     Enables debugging.

       -g     Disables file name globbing.

       -k realm
              When using Kerberos v4 authentication, gets tickets in realm.

       -f     Causes credentials to be forwarded to the remote host.

       -x     Causes  the  client to attempt to negotiate encryption (data and command protection levels ‘‘private’’) immediately
              after successfully authenticating.

       -t     Enables packet tracing.

COMMANDS
       The client host with which ftp is to communicate may be specified on the command line.  If this is done, ftp will  immedi-
       ately  attempt  to establish a connection to an FTP server on that host; otherwise, ftp will enter its command interpreter
       and await instructions from the user.  When ftp is awaiting commands from the user the prompt ‘‘ftp>’’ is provided to  the
       user.  The following commands are recognized by ftp:

       ! [command] [args]]
              Invoke  an  interactive  shell on the local machine.  If there are arguments, the first is taken to be a command to
              execute directly, with the rest of the arguments as its arguments.

       $ macro-name [args]
              Execute the macro macro-name that was defined  with  the  macdef  command.   Arguments  are  passed  to  the  macro
              unglobbed.

       account [passwd]

Lymf
WRInaute discret
WRInaute discret
 
Messages: 189
Inscription: 12 Mai 2005

Message le Mer Nov 23, 2005 12:35

ou alors tu tapes la commande prompt 0 avant le mget


Si vous avez aimé cette discussion, partagez-la sur vos réseaux sociaux préférés :

Formation recommandée sur ce thème :

Formation Google Analytics : en 2 jours, apprenez comment exploiter l'essentiel des possibilités de l'outil de mesure d'audience de Google. Formation animée par les experts Google Analytics de Ranking Metrics.

Tous les détails sur le site Ranking Metrics : programme, prix, dates et lieux, inscription en ligne.

Lectures recommandées sur ce thème :



Qui est en ligne

Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 1 invité