rsync
Hello all!! I'm a relative Linux newbie. I've worked with HP-UX in the past though...
Here's my question: Want to rsync from a directory on an ftp server far away. Planning to setup as a cron job to run once a night, then email new transfers notification to me. Any ideas how to move forward? Thank you in advance!! |
first things first, verify that the ftp server is running Linux, if it is not you will not be able to use rsync. also that ftp server will have to allow for rsa passwordless keys. see the links in my sig to learn about setting up ssh keys.
also a simple bash script will work. also if the ftp server allows for lftp connection you can use that instead of rsync. |
Hi,
Quote:
Quote:
Cheers, Evo2. |
It appears that rsync won't run ftp. I'm using wget instead. Thanks anyways guys.
|
Hi,
Quote:
HTH, Evo2. |
Quote:
Thanks!! |
Ok...I figured it out. Well, as far as downloading and installing goes. I've spent far too much time trying to no avail. Here's the command I've come up with so far:
lftp -u username,password -e mirror -only-newer ftp://ftp.server.far.away /server/nearby/home/me I get an 'invalid option --'o', or 'unknown command 'sslica-file'' That's all the info I gots for the moment. I patiently await your reply. |
You need two "-"'s before the "only-newer" flag.
Code:
--only-newer Code:
-only-newer |
Ok...I ran the command again. It casme back with
Unknown command 'ssl:ca-file'. and lftp: unrecognized option '--only-newer' I ran a ps -ef | grep lftp and it's running the command without the --only-newer option. bizarre |
Hi,
Quote:
Quote:
Evo2. |
Hi,
Quote:
Evo2. |
Quote:
|
Hi,
Quote:
Eg Code:
zypper install tftp Normally I would expect that ./configure would be run to prior to building a package from source. Can you please clarify what you actually did, and what distro you are running? Evo2. |
Ok...I have everything installed and working I guess. The one issue I have now is getting the files from the ftp site and putting them into a certain local directory. I'm using the -O option. Here's the command I'm running:
lftp -u username,password -e mirror ftp://ftp.faraway.com/source/directory -O /home/local/directory It comes back with lftp: invalid option -- 'O' If I remove the -O option, it puts the file in whichever directory I'm in when the command is executed. I also haven't had much success with the --only-newer command option. Help please? |
|
All times are GMT -5. The time now is 02:16 AM. |