PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > linux.debian.user > Commandline FTP tool to sync mirror @ISP
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
linux.debian.user debian-user@lists.debian.org.

Commandline FTP tool to sync mirror @ISP

Réponse
 
LinkBack Outils de la discussion
Vieux 17/06/2007, 17h30   #1
Michelle Konzack
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Commandline FTP tool to sync mirror @ISP

Hello,

unfortunatly my ISP allow only FTP and it is not realy easy to update
the FTP/Webspace by hand.

What I need is a full automated FTP commandline client which can sync
my local mirror (Laptop) with the ISP. I mean, not only upload files
but deletiong fils on the ISP's mirrors too (= creating an exact copy
of my local mirror including subdirectories).

Can anyone recommend a tool for this?

Oh yes, it must work from inside a script without interaction.

Thanks, Greetings and nice Day
Michelle Konzack
Systemadministrator
Tamay Dogan Network
Debian GNU/Linux Consultant


--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack Apt. 917 ICQ #328449886
50, rue de Soultz MSN LinuxMichi
0033/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFGdU+/C0FPBMSS+BIRAntcAKDTEyKkqBtPL9fhq/gP5efl4TaegQCeNet9
PvzYBcROTHLVNZLpBcq9cBU=
=Ci/q
-----END PGP SIGNATURE-----

  Réponse avec citation
Vieux 17/06/2007, 18h00   #2
Magnus Pedersen
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Commandline FTP tool to sync mirror @ISP

Michelle Konzack wrote:
> Hello,
>
> unfortunatly my ISP allow only FTP and it is not realy easy to update
> the FTP/Webspace by hand.
>
> What I need is a full automated FTP commandline client which can sync
> my local mirror (Laptop) with the ISP. I mean, not only upload files
> but deletiong fils on the ISP's mirrors too (= creating an exact copy
> of my local mirror including subdirectories).
>
> Can anyone recommend a tool for this?
>

I think lftp is your best bet.

/Magnus


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 17/06/2007, 18h10   #3
Ron Johnson
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Commandline FTP tool to sync mirror @ISP

On 06/17/07 10:14, Michelle Konzack wrote:
> Hello,
>
> unfortunatly my ISP allow only FTP and it is not realy easy to update
> the FTP/Webspace by hand.
>
> What I need is a full automated FTP commandline client which can sync
> my local mirror (Laptop) with the ISP. I mean, not only upload files
> but deletiong fils on the ISP's mirrors too (= creating an exact copy
> of my local mirror including subdirectories).
>
> Can anyone recommend a tool for this?
>
> Oh yes, it must work from inside a script without interaction.


ncftpput might be able to simulate what you want.

--
Ron Johnson, Jr.
Jefferson LA USA

Give a man a fish, and he eats for a day.
Hit him with a fish, and he goes away for good!


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 17/06/2007, 18h20   #4
Nelson Castillo
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Commandline FTP tool to sync mirror @ISP

> Can anyone recommend a tool for this?

Also "ckermit". It belongs to non-free because of some
cryptography options (I think -- I am not sure).

http://www.columbia.edu/kermit/ftpclient.html
http://packages.debian.org/ckermit

We used it with this program 2 years ago.
http://wiki.freaks-unidos.net/file-mirror
This one will only send the files that changed

Regards.

--
http://arhuaco.org
http://emQbit.com


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 20/06/2007, 17h10   #5
Michelle Konzack
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Commandline FTP tool to sync mirror @ISP

Am 2007-06-17 17:27:30, schrieb Magnus Pedersen:
> I think lftp is your best bet.


I have tried it already but it does not delete files in the ISP server.

It upload only files and maybe override existing ones but not deleting
files which I do not more have local.

Thanks, Greetings and nice Day
Michelle Konzack


--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack Apt. 917 ICQ #328449886
50, rue de Soultz MSN LinuxMichi
0033/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFGeTnQC0FPBMSS+BIRAvhgAJ9jWFzVThgaDlXOb8FPGs CFSwyzywCdHKhC
0EpN7Mzx7uUxP1q7A89XLQQ=
=AnnK
-----END PGP SIGNATURE-----

  Réponse avec citation
Vieux 20/06/2007, 17h10   #6
Michelle Konzack
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Commandline FTP tool to sync mirror @ISP

Hello Magnus,

Am 2007-06-17 17:27:30, schrieb Magnus Pedersen:
> I think lftp is your best bet.


Since I must execute lftp from a script with

lftp -f ${SCRIPT_FILE}

I have create a file :

+----[ '~/freenet/linux4michelle.scr' ]---------------
| user linux4michelle ${PASS}
| open ftp://people-ftp.freenet.de/
| mirror --no-symlinks --no-perms --no-umask \
| --dereference --reverse --delete \
| --only-newer --only-missing \
| ${HOME}/freenet/linux4michelle/ \
| ftp://people-ftp.freenet.de/
| exit
+-----------------------------------------------------

and want to ask you, whether this is right or not, IF it should

1) delete all files on the ISP server which are not in the
local directory ${HOME}/freenet/linux4michelle/
2) upload all files recursivly from the local directory
${HOME}/freenet/linux4michelle/ to the ISP Server if
a) the file does not exist
b) the local file is newer as the one on the server
3) Do not try to change perms, umnask since my ISP care about it
4) and then exit

Sorry, if I have forgotten my password and used only ${PASS}
but my age hit me... :-)

Oh, I must be very careful with the script since I have several
1000 files in the ISP server

Thanks, Greetings and nice Day
Michelle Konzack



--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack Apt. 917 ICQ #328449886
50, rue de Soultz MSN LinuxMichi
0033/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFGeToSC0FPBMSS+BIRAkdgAKCqbZJlxoZVBIjUHqaFsv RmGnQq9wCgrz82
YQ+8jpBh9y5sEhUSuZAR4Wk=
=fS+Q
-----END PGP SIGNATURE-----

  Réponse avec citation
Vieux 20/06/2007, 17h10   #7
Michelle Konzack
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Commandline FTP tool to sync mirror @ISP

Am 2007-06-17 11:01:05, schrieb Ron Johnson:
> ncftpput might be able to simulate what you want.


Unfortunatly not. It delete ONLY local files if they are
successfuly uploaded. What I need is:

1) Get a list of local files from a directory
2) Look into the remote directory and delete ALL
files which ARE NOT in the local directory.
3) Upload all files which are
a) local newer then remote
b) do remote not exist

It is more clear?

Thanks, Greetings and nice Day
Michelle Konzack


--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack Apt. 917 ICQ #328449886
50, rue de Soultz MSN LinuxMichi
0033/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFGeToGC0FPBMSS+BIRAl/TAJ0XXijyBZaQE2JDvrSSJUKPw/wgXQCg1WjE
wTbYEJEVdGQES2tGnbMCDhA=
=8EF4
-----END PGP SIGNATURE-----

  Réponse avec citation
Vieux 21/06/2007, 03h00   #8
Karl E. Jorgensen
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Commandline FTP tool to sync mirror @ISP

On Sun, Jun 17, 2007 at 05:14:07PM +0200, Michelle Konzack wrote:
> Hello,
>
> unfortunatly my ISP allow only FTP and it is not realy easy to update
> the FTP/Webspace by hand.
>
> What I need is a full automated FTP commandline client which can sync
> my local mirror (Laptop) with the ISP. I mean, not only upload files
> but deletiong fils on the ISP's mirrors too (= creating an exact copy
> of my local mirror including subdirectories).
>
> Can anyone recommend a tool for this?
>
> Oh yes, it must work from inside a script without interaction.


# apt-get install sitecopy

looks like exactly what you're after

Hope this s

--
Karl E. Jorgensen
karl@jorgensen.org.uk http://www.jorgensen.org.uk/
karl@jorgensen.com http://karl.jorgensen.com
==== Today's fortune:
Hope not, lest ye be disappointed.
-- M. Horner

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGecyGi+PVvwZpXJgRAjsZAJ9uotqkYR+NflmHO8SnNQ 8tBLnzSACeN39R
AwsAflW1lykhc4V7pwy+3Rs=
=9rR5
-----END PGP SIGNATURE-----

  Réponse avec citation
Vieux 21/06/2007, 07h40   #9
i'll teach you to turn away.
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Commandline FTP tool to sync mirror @ISP

Michelle Konzack <linux4michelle@freenet.de> wrote:
MK> unfortunatly my ISP allow only FTP and it is not realy easy to update
MK> the FTP/Webspace by hand.

yep, same situation i was in. use ftpsync.

$ ftpsync -s $isp-ip -v -u $username -p $passwd -r / -l /local/mirror

lish "i have holes poked in me
crank@got.net rendering me useless to collectors." -jerkcity


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 03h40.


Édité par : vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,14618 seconds with 17 queries