Formation par Olivier Duffez

Formation au référencement par Olivier Duffez, créateur de WebRankInfo !
Une formule efficace alliant théorie et pratique, avec une haute disponibilité des intervenants
Cette formule a déjà convaincu plusieurs centaines d'entreprises, pourquoi pas vous ?
Réservez vite votre place en ligne (convention possible pour imputer sur le budget formation)

Formation référencement Marseille

Je cale sur une commande FTP sous Linux

Poster un nouveau sujet Imprimer cette discussion    Forum -> Administration d'un site Web   Les dernières discussions de ce forum sont disponibles au format RSS
Voir le sujet précédent :: Voir le sujet suivant  
Auteur Message
 
sdamain
WRInaute accro
WRInaute accro

Inscrit le: 14 Oct 2003
Messages: 1262
Localisation: Arlon, Belgique

URL permanente de ce messagePosté le : Mer Nov 23, 2005 12:49    Sujet du message: Je cale sur une commande FTP sous Linux

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.
 
sdamain
LeMulotNocturne
WRInaute passionné
WRInaute passionné

Inscrit le: 01 Juin 2005
Messages: 601
Localisation: Lyon

URL permanente de ce messagePosté le : Mer Nov 23, 2005 12:59    Sujet du message: Je cale sur une commande FTP sous Linux

mget, tout simplement Wink
par contre c'est pas récursif à ma connaissance... Confused
 
LeMulotNocturne Visiter le site web du posteur
sdamain
WRInaute accro
WRInaute accro

Inscrit le: 14 Oct 2003
Messages: 1262
Localisation: Arlon, Belgique

URL permanente de ce messagePosté le : Mer Nov 23, 2005 13:08    Sujet du message: Je cale sur une commande FTP sous Linux

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.
 
sdamain
LeMulotNocturne
WRInaute passionné
WRInaute passionné

Inscrit le: 01 Juin 2005
Messages: 601
Localisation: Lyon

URL permanente de ce messagePosté le : Mer Nov 23, 2005 13:19    Sujet du message: Je cale sur une commande FTP sous Linux

il faut lancer le ftp avec l'option -i

Code:
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]
 
LeMulotNocturne Visiter le site web du posteur
Lymf
WRInaute occasionnel
WRInaute occasionnel

Inscrit le: 12 Mai 2005
Messages: 188
Localisation: bxl.be

URL permanente de ce messagePosté le : Mer Nov 23, 2005 13:35    Sujet du message: Je cale sur une commande FTP sous Linux

ou alors tu tapes la commande prompt 0 avant le mget
 
Lymf Visiter le site web du posteur
 
Montrer les messages depuis:   
Revenir en haut    Forum -> Administration d'un site Web Toutes les heures sont au format GMT + 2 Heures
Page 1 sur 1 - 
Connexion
Nom d'utilisateur:    Mot de passe:      Se connecter automatiquement à chaque visite    

CLIQUEZ ICI pour vous inscrire à WebRankInfo (forum, annuaire, outils...)

Connexion

© 2001-2005 phpBB Group, support français
Personnalisation : WebRankInfo ™


 ODP  Firefox  Alsacreations  annuaire webmaster Yagoort