Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: net::ftp , ftp program , backup

by echo (Pilgrim)
on Oct 12, 2001 at 16:10 UTC ( #118452=note: print w/replies, xml ) Need Help??


in reply to net::ftp , ftp program , backup

I'm not sure I quite understand the FTP part of your question, but for backups a great tool is rsync, which can conveniently be used from Perl with File::Rsync.

Replies are listed 'Best First'.
Re: Re: net::ftp , ftp program , backup
by Anonymous Monk on Oct 12, 2001 at 17:14 UTC
    sorry its calling resurcive uploading....
    i have already this

    #!/usr/bin/perl> use Net::FTP; $ftp = Net::FTP->new("10.10.10.3", Debug => 0); if ($ftp == undef) { die ("Couldn't open ftp connection, $@\n"); } $ftp->login('test','test'); $ftp->binary; for(<*.*>) { $ftp->put($_); } $ftp->quit;
    That is uploading everything in my current directory !
    just the files ... but if there is also directory's in that
    directory. it is doing nothing. and i want do some logging also any idea ....

    2001-10-13 Edit by Corion : Added CODE tags

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://118452]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2019-04-18 16:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I am most likely to install a new module from CPAN if:
















    Results (103 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!