Constant mirroring


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Constant mirroring
# 1  
Old 09-25-2008
Constant mirroring

I'm not sure how to best explain what I'd like to do, so let me give an example. I used to work in a department that deals with internet security. This department had an "internal" website (only people in the building can get on it) and an "external" website (anyone in the world can get on it -- like unix.com). One day I was told that someone was having trouble FTP'ing a file to the internal server. All he wanted to do was transfer the file between two computers -- he was going to FTP it up with one computer, then get it down from the other computer. He ended up FTP'ing the file to the external server to get the job done. It was deleted from the external server in a matter of minutes.

Apparently, the file he uploaded was "secret information" and it was determined by log files and stuff that someone else had downloaded it in those few minutes it was up there. It was also determined that the person who downloaded the file was actually a script that was constantly mirroring the server.

I now work somewhere else, and we have a number of websites. The management wants us to have an RSS feed (they actually don't even know what RSS is -- they just like to say it) that gets all the new stuff from all of our websites. Instead of making changes to each website, I thought it would be cool to have this same type of script that automatically grabs new information within minutes of it being posted.

I hope that makes sense. Sorry for story-time.

And no, I'm not the person that FTP'd the stuff. I wasn't cool enough to have access to "secrets". Smilie
# 2  
Old 09-25-2008
Use cron to have rsync check directory A every n minutes - then check directory B. If there's a difference, it will copy the data from A to B
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Debian

LM 17.3 xfce constant lagging

I'm using LM 17.3x LIVE. Have constant and sometimes, severe lagging issues. Problems started when I "upgraded" to 18.3x. I tried 5 other distros all with the same issues. Went back to 17.3 and , alas, the problem followed. Found this: sudo gedit /etc/sysctl. conf vm. swappiness = 15, but all it... (4 Replies)
Discussion started by: 69Rixter
4 Replies

2. Programming

String Constant C

I wonder string constant exists permanently or temporary. For example, printf("hello, world"); the function printf access to it is through a pointer. Does it mean storage is allocated for the string constant to exist permanently in memory? :confused: (4 Replies)
Discussion started by: kris26
4 Replies

3. Solaris

Constant disturbing messages????

Hi friends, I am new to Solaris, I have just managed to install Solaris 10 under VirtualBox. As I use the system, I constantly get some very disturbing error messages on my screen, I hope you will help me remove them. Messages are # syslogd: line 24: WARNING: loghost could not be resolved ... (6 Replies)
Discussion started by: gabam
6 Replies

4. Shell Programming and Scripting

while infinite loop_sockets constant

Hello Every one, it's requiered to create 'n' number of sockets constant for a hour time. i had my own script to create sockets using this i was able to create sockets and sendind data but using the tool i can maintain 'n' number of sockets for 5 minutes only after sockets are getting reduced to... (1 Reply)
Discussion started by: mannam srinivas
1 Replies

5. Programming

'strlen' of a constant string

In a declaration, I have: const char comment_begin = "<!--"; const char comment_end = "-->"; const int comment_begin_len = strlen(comment_begin); const int comment_end_len = strlen(comment_end); When I compile, I get the warnings: emhttpc.c:64: warning: initializer element is not... (10 Replies)
Discussion started by: cleopard
10 Replies

6. AIX

AIX Constant Rebooting

IBM has replaced all parts in the system 3 times. Had electrician check to make sure the dedicated electrical circuit was good. Made sure the server rack was grounded, but AIX keeps shutting down when everyone is on the system. Reloaded AIX on the system. If the system is left alone it will stay... (4 Replies)
Discussion started by: AIXNEWBEE
4 Replies

7. Programming

File descriptor constant

I have a requirement to close all the file descriptors from 3 to 1024 for a particular application. Right now, this is how I do it .. for ( int i = 3 ; i <= 1024; ++i ) close(i); The change I am looking at is, I want to do away with the number 1024 and replace it with a constant which... (4 Replies)
Discussion started by: vino
4 Replies
Login or Register to Ask a Question