LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-08-2009, 04:34 AM   #1
chayolle
LQ Newbie
 
Registered: Apr 2009
Posts: 2

Rep: Reputation: 0
Synchronization


Hi,

First of all, I'm completely new to Linux and really need your help!

I have a dedicated server that I rent with a french company (OVH) with Redhat 7.2 that I access through the webmin interface. A website is hosted on this server. Clients will upload images on this server. What I need to do is to synchronise the folder that will contain the images with a folder on my server here in Mauritius in real time, i.e. when a client upload an image it will directly come to my folder here on my server.

Does anyone has a clue on how I will do this?

With many Thanks,

Laurent Fayolle

Last edited by chayolle; 04-08-2009 at 05:05 AM.
 
Old 04-08-2009, 05:26 AM   #2
fpmurphy
Member
 
Registered: Jan 2009
Location: /dev/ph
Distribution: Fedora, Ubuntu, Redhat, Centos
Posts: 299

Rep: Reputation: 62
You could use a combination of inotify and ftp on the French server to send the new file to your Mauritius server or you could NFS soft mount the relevant subdirectory on the French server onto your Mauritius server.
 
Old 04-08-2009, 06:36 AM   #3
chayolle
LQ Newbie
 
Registered: Apr 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for your quick answer fpmurphy.

I downloaded inotify_tools from sourceforge, and tried to install it using a tutorial on how to install an app, and it does not work, here is the output:

Code:
[root@ns205884 inotify]# make
make  all-recursive
make[1]: Entre dans le répertoire `/home/dls/inotify'
Making all in libinotifytools
make[2]: Entre dans le répertoire `/home/dls/inotify/libinotifytools'
make[3]: Entre dans le répertoire `/home/dls/inotify'
make[3]: Quitte le répertoire `/home/dls/inotify'
Making all in src
make[3]: Entre dans le répertoire `/home/dls/inotify/libinotifytools/src'
make[4]: Entre dans le répertoire `/home/dls/inotify'
make[4]: Quitte le répertoire `/home/dls/inotify'
Making all in inotifytools
make[4]: Entre dans le répertoire `/home/dls/inotify/libinotifytools/src/inotifytools'
make[5]: Entre dans le répertoire `/home/dls/inotify'
make[5]: Quitte le répertoire `/home/dls/inotify'
make  all-am
make[5]: Entre dans le répertoire `/home/dls/inotify/libinotifytools/src/inotifytools'
make[6]: Entre dans le répertoire `/home/dls/inotify'
make[6]: Quitte le répertoire `/home/dls/inotify'
make[5]: Quitte le répertoire `/home/dls/inotify/libinotifytools/src/inotifytools'
make[4]: Quitte le répertoire `/home/dls/inotify/libinotifytools/src/inotifytools'
make[4]: Entre dans le répertoire `/home/dls/inotify/libinotifytools/src'
make[5]: Entre dans le répertoire `/home/dls/inotify'
make[5]: Quitte le répertoire `/home/dls/inotify'
if /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../libinotifytools/src/inotifytools    -std=c99 -g -O2 -MT inotifytools.lo -MD -MP -MF ".deps/inotifytools.Tpo" -c -o inotifytools.lo inotifytools.c; \
then mv -f ".deps/inotifytools.Tpo" ".deps/inotifytools.Plo"; else rm -f ".deps/inotifytools.Tpo"; exit 1; fi
mkdir .libs
 gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../libinotifytools/src/inotifytools -std=c99 -g -O2 -MT inotifytools.lo -MD -MP -MF .deps/inotifytools.Tpo -c inotifytools.c  -fPIC -DPIC -o .libs/inotifytools.o
inotifytools.c: In function `cleanup_tree':
inotifytools.c:316: parse error before `*'
inotifytools.c:317: `w' undeclared (first use in this function)
inotifytools.c:317: (Each undeclared identifier is reported only once
inotifytools.c:317: for each function it appears in.)
inotifytools.c: In function `empty_stats':
inotifytools.c:353: parse error before `*'
inotifytools.c:354: `w' undeclared (first use in this function)
inotifytools.c: In function `replace_filename':
inotifytools.c:377: parse error before `*'
inotifytools.c:382: `old_len' undeclared (first use in this function)
inotifytools.c:382: `old_name' undeclared (first use in this function)
inotifytools.c:382: `w' undeclared (first use in this function)
inotifytools.c:383: `name' undeclared (first use in this function)
inotifytools.c:383: `new_name' undeclared (first use in this function)
inotifytools.c: In function `inotifytools_str_to_event_sep':
inotifytools.c:477: parse error before `int'
inotifytools.c:480: `ret' undeclared (first use in this function)
inotifytools.c:484: `event1' undeclared (first use in this function)
inotifytools.c:485: `event2' undeclared (first use in this function)
inotifytools.c:488: `len' undeclared (first use in this function)
inotifytools.c:495: `eventstr' undeclared (first use in this function)
inotifytools.c:498: `ret1' undeclared (first use in this function)
inotifytools.c: In function `inotifytools_filename_from_wd':
inotifytools.c:765: parse error before `*'
inotifytools.c:766: `w' undeclared (first use in this function)
inotifytools.c: In function `inotifytools_wd_from_filename':
inotifytools.c:786: parse error before `*'
inotifytools.c:787: `w' undeclared (first use in this function)
inotifytools.c: In function `inotifytools_set_filename_by_wd':
inotifytools.c:807: parse error before `*'
inotifytools.c:808: `w' undeclared (first use in this function)
inotifytools.c: In function `inotifytools_set_filename_by_filename':
inotifytools.c:832: warning: assignment makes pointer from integer without a cast
inotifytools.c: In function `inotifytools_replace_filename':
inotifytools.c:860: parse error before `char'
inotifytools.c:861: `names' undeclared (first use in this function)
inotifytools.c: In function `remove_inotify_watch':
inotifytools.c:872: parse error before `int'
inotifytools.c:873: `status' undeclared (first use in this function)
inotifytools.c: In function `create_watch':
inotifytools.c:888: parse error before `*'
inotifytools.c:889: `w' undeclared (first use in this function)
inotifytools.c: In function `inotifytools_remove_watch_by_wd':
inotifytools.c:909: parse error before `*'
inotifytools.c:910: `w' undeclared (first use in this function)
inotifytools.c: In function `inotifytools_remove_watch_by_filename':
inotifytools.c:932: parse error before `*'
inotifytools.c:933: `w' undeclared (first use in this function)
inotifytools.c: In function `inotifytools_watch_files':
inotifytools.c:979: parse error before `static'
inotifytools.c:980: `i' undeclared (first use in this function)
inotifytools.c:996: parse error before `char'
inotifytools.c:1000: `filename' undeclared (first use in this function)
inotifytools.c: In function `inotifytools_next_events':
inotifytools.c:1098: parse error before `static'
inotifytools.c:1118: `jmp' undeclared (first use in this function)
inotifytools.c:1123: `first_byte' undeclared (first use in this function)
inotifytools.c:1124: `bytes' undeclared (first use in this function)
inotifytools.c:1126: `ret' undeclared (first use in this function)
inotifytools.c:1126: `event' undeclared (first use in this function)
inotifytools.c:1150: `match_name' undeclared (first use in this function)
inotifytools.c:1159: parse error before `static'
inotifytools.c:1165: `read_timeout' undeclared (first use in this function)
inotifytools.c:1167: parse error before `static'
inotifytools.c:1168: `read_timeout_ptr' undeclared (first use in this function)
inotifytools.c:1170: `read_fds' undeclared (first use in this function)
inotifytools.c:1172: `rc' undeclared (first use in this function)
inotifytools.c:1186: `bytes_to_read' undeclared (first use in this function)
inotifytools.c:1195: `this_bytes' undeclared (first use in this function)
inotifytools.c: In function `inotifytools_watch_recursively_with_exclude':
inotifytools.c:1286: parse error before `*'
inotifytools.c:1289: `dir' undeclared (first use in this function)
inotifytools.c:1302: `my_path' undeclared (first use in this function)
inotifytools.c:1308: parse error before `static'
inotifytools.c:1311: `ent' undeclared (first use in this function)
inotifytools.c:1316: `next_file' undeclared (first use in this function)
inotifytools.c:1317: `my_stat' undeclared (first use in this function)
inotifytools.c:1331: parse error before `static'
inotifytools.c:1334: `no_watch' undeclared (first use in this function)
inotifytools.c:1335: `exclude_entry' undeclared (first use in this function)
inotifytools.c:1377: parse error before `int'
inotifytools.c:1379: `ret' undeclared (first use in this function)
inotifytools.c: In function `record_stats':
inotifytools.c:1387: parse error before `*'
inotifytools.c:1388: `w' undeclared (first use in this function)
inotifytools.c: In function `inotifytools_get_stat_by_wd':
inotifytools.c:1498: parse error before `*'
inotifytools.c:1499: `w' undeclared (first use in this function)
inotifytools.c:1500: parse error before `int'
inotifytools.c:1501: `i' undeclared (first use in this function)
inotifytools.c: In function `isdir':
inotifytools.c:1596: storage size of `my_stat' isn't known
inotifytools.c:1596: storage size of `my_stat' isn't known
inotifytools.c: In function `inotifytools_ignore_events_by_regex':
inotifytools.c:2013: parse error before `int'
inotifytools.c:2014: `ret' undeclared (first use in this function)
inotifytools.c: In function `event_compare':
inotifytools.c:2026: parse error before `char'
inotifytools.c:2028: `sort_event' undeclared (first use in this function)
inotifytools.c:2030: `asc' undeclared (first use in this function)
inotifytools.c:2035: parse error before `int'
inotifytools.c:2037: `i1' undeclared (first use in this function)
inotifytools.c:2037: `i2' undeclared (first use in this function)
make[4]: *** [inotifytools.lo] Erreur 1
make[4]: Quitte le répertoire `/home/dls/inotify/libinotifytools/src'
make[3]: *** [all-recursive] Erreur 1
make[3]: Quitte le répertoire `/home/dls/inotify/libinotifytools/src'
make[2]: *** [all-recursive] Erreur 1
make[2]: Quitte le répertoire `/home/dls/inotify/libinotifytools'
make[1]: *** [all-recursive] Erreur 1
make[1]: Quitte le répertoire `/home/dls/inotify'
make: *** [all] Erreur 2
[root@ns205884 inotify]#
Could you help me with this?

I really don't know how I will use this with an ftp to make it work... As already said before, this is the very first time I work on a linux environment...
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration