Jump to content

Copying files from A to B remotely, automatically?


Recommended Posts

Ok. Here's what I need to do:

 

I'd like to setup an hourly cron job to take all the .log files from...

 

ftp://me@serverA/files/*.log

 

and copy them to...

 

ftp://me@serverB/files/

 

Both of these servers require a separate password. I have very limited experience with this sort of thing and any help would be greatly appreciated.

 

Thanks.

Edited by sttroopers
Link to comment
Share on other sites

Rsync is your answer. The list of options are very long

And in greek. According to the man pages it looks like I'll have to first copy the files to a local directory then upload them.

 

Note  that in all cases (other than listing) at least one of the source and destination paths must be local.

 

scp looks like what I'm looking for but the man page is sparse and doesnt provide any example scripts, which is basically what I'm looking for. I was hoping someone with some experience would provide an example.

Edited by sttroopers
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...