Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > cron & rsync script needed PLEASE HELP !!

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-19-03, 19:16
trochia trochia is offline
Registered User
 
Join Date: Dec 2003
Posts: 4
cron & rsync script needed PLEASE HELP !!

greetings, and thank-you for looking !!

problem = need to mirror sites on remote ( leased ) servers and not getting much help, as the guys I am leasing from know less than me...so far>

1) nix newbie, been around since DOS 2.0 but behing in linux/unix/redhat.

2) I have read this, http://hacks.oreilly.com/pub/h/38

and seems to be what i need....I do NOT have ROOT access, and will not...unless I lease my own server, and not to that point yet.

3) Any help please?.... As I have been buzzing thru everything and anything...getting confused, and this has been for 24+ hours....

and my mind is toasted at this point...

Everything req'd so far that I can see is already installed on both these servers, I just need a little kick in my brain...to put together all this.

thank- ANYONE in advance, and happy holidays,

jim
Reply With Quote
  #2 (permalink)  
Old 12-19-03, 22:43
mhz mhz is offline
Registered User
 
Join Date: Dec 2003
Posts: 4
can you please specify what your actual question is.
Reply With Quote
  #3 (permalink)  
Old 12-19-03, 22:53
trochia trochia is offline
Registered User
 
Join Date: Dec 2003
Posts: 4
?? need to mirror sites on remote ( leased ) servers ??

that's about it, they are telling me I can install a script.

As mentioned prior, i am behind in the NIX curve, and I guess now, looking for help on writing a script to accomplish this task.

As The above <below> article, just tells about " rsync "...

ty

Jim
Reply With Quote
  #4 (permalink)  
Old 12-27-03, 04:33
ika ika is offline
Registered User
 
Join Date: Oct 2003
Location: Slovakia
Posts: 482
OK, the tranfer is following:
machine A -> machine B.
IP of A: 192.168.0.1
IP of B: 192.168.0.2
Here is example of configuration on machine A located in /etc/rsyncd.conf:

motd file = /etc/motd
max connections = 25
syslog facility = local3

[images]
comment = all images
path = /path/to/images_directory
read only = yes
list = yes
hosts allow = 192.168.0.2 # replace with IP of machine B
uid = username # replace with correct username
gid = groupid # replace with correct group name

AT MACHINE B:
modify your crontab (according to username in rsyncd.conf on machine A):

0 * * * * /usr/bin/rsync -v -a 192.168.0.1::images/ /path/where/i/need/images_replicated > /tmp/rsync.log 2>&1

Thats all... All images on machine A will be automaticaly replicated to B (In this case incrementaly!!!)
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On