Hi Guys! I am trying to sync two network locations in real-time (with acceptable time lag) and just found this FAM and IMON from SGI (http://oss.sgi.com/projects/fam/faq.html) , I also found one package Gamin but don't know how to setup this. Can someone point me in right direction to achieve this?
I am able to rsync two locations using simple cron job and RSA key authentication (password less, using Keychain).
Do I need to build a custom kernel for this (FAM and IMON)?
Thank you.
Regards,
Rahul.
rahul@excelize.com www.excelize.com
*You just need create ssh keys and use rsync , and here an example: http://www.linux.com/archive/feature/113847
*-------------------------- Best Wishes, Waleed Harbi
Dream | Do | Be
On Mon, Jan 25, 2010 at 2:09 PM, Rahul Tidke rahul@excelize.com wrote:
Hi Guys! I am trying to sync two network locations in real-time (with acceptable time lag) and just found this FAM and IMON from SGI (http://oss.sgi.com/projects/fam/faq.html) , I also found one package Gamin but don't know how to setup this. Can someone point me in right direction to achieve this?
I am able to rsync two locations using simple cron job and RSA key authentication (password less, using Keychain).
Do I need to build a custom kernel for this (FAM and IMON)?
Thank you.
Regards,
Rahul.
rahul@excelize.com www.excelize.com
-- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
From: Waleed Harbi [mailto:waleed.harbi@gmail.com] Sent: Monday, January 25, 2010 5:07 PM To: rahul@excelize.com; Community support for Fedora users Subject: Re: File Alteration Monitor
You just need create ssh keys and use rsync , and here an example: http://www.linux.com/archive/feature/113847
As I said; I have already done that , I want it to happen in real-time, so if some files changed at "location A" then that change should initiate the sync to "location B". For this I am trying to setup FAM and IMON on fedora, which I am not able to, as there is no kernel support for this. I referred following URL; but didn't get any idea how to proceed?
http://www.linuxfocus.org/English/March2001/article199.shtml
Regards Rahul.
rahul@excelize.com www.exelize.com
*Use cronjob. *-------------------------- Best Wishes, Waleed Harbi
Dream | Do | Be
On Mon, Jan 25, 2010 at 2:47 PM, Rahul Tidke rahul@excelize.com wrote:
From: Waleed Harbi [mailto:waleed.harbi@gmail.com] Sent: Monday, January 25, 2010 5:07 PM To: rahul@excelize.com; Community support for Fedora users Subject: Re: File Alteration Monitor
You just need create ssh keys and use rsync , and here an example: http://www.linux.com/archive/feature/113847
As I said; I have already done that , I want it to happen in real-time, so if some files changed at "location A" then that change should initiate the sync to "location B". For this I am trying to setup FAM and IMON on fedora, which I am not able to, as there is no kernel support for this. I referred following URL; but didn't get any idea how to proceed?
http://www.linuxfocus.org/English/March2001/article199.shtml
Regards Rahul.
rahul@excelize.com www.exelize.com
Rahul Tidke writes:
Hi Guys! I am trying to sync two network locations in real-time (with acceptable time lag) and just found this FAM and IMON from SGI (http://oss.sgi.com/projects/fam/faq.html) , I also found one package Gamin but don't know how to setup this. Can someone point me in right direction to achieve this?
yum install gamin
There's nothing else to set up.
I am able to rsync two locations using simple cron job and RSA key authentication (password less, using Keychain).
Do I need to build a custom kernel for this (FAM and IMON)?
No. Gamin is a replacement for FAM in earlier Fedora releases. Both use the same kernel API.
You might be misundersting what Gamin/FAM is. It is not a tool for synchronizing contents of directories. It's an API by which an application gets notified whenever the contents of a directory change. By "contents of a directory" means "the names of files in a directory", that is "when new files are created in a directory, existing files are removed, or renamed", and not "contents of any file in a directory". As such, there is nothing to configure. An application uses the appropriate Gamin/FAM API, and then gets notified when that happens.
-----Original Message----- From: users-bounces@lists.fedoraproject.org [mailto:users-bounces@lists.fedoraproject.org] On Behalf Of Sam Varshavchik
No. Gamin is a replacement for FAM in earlier Fedora releases. Both use
the same kernel API.
You might be misundersting what Gamin/FAM is. It is not a tool for
synchronizing contents of directories. It's an API by which an application gets notified whenever >> the contents of a directory change. By "contents of a directory" means "the names of files in a directory", that is "when new files are created in a directory, existing >> files are removed, or renamed", and not "contents of any file in a directory". As such, there is nothing to configure. An application uses the appropriate Gamin/FAM >> API, and then gets notified when that happens.
I am referring http://www.linuxfocus.org/English/March2001/article199.shtml & http://oss.sgi.com/projects/fam/faq.html , which says FAM can report when a file is created, deleted, modified, or executed. So if a file gets modified , isn't that sufficient to initiate sync to other location? Please correct me if I am wrong.
What I want is: 1) If a file changes (file contents also) it should fire a command for syncing to other network location.
Thanks.
Rahul.
What I want is:
- If a file changes (file contents also) it should fire a command for
syncing to other network location.
DRBD
Rahul Tidke writes:
I am referring http://www.linuxfocus.org/English/March2001/article199.shtml & http://oss.sgi.com/projects/fam/faq.html , which says FAM can report when a file is created, deleted, modified, or executed. So if a file gets modified , isn't that sufficient to initiate sync to other location? Please correct me if I am wrong.
This is sufficient, of course, if you write the code to do it. All that FAM does is allow an application to be notified when files are directories are changed. FAM, by itself, won't copy these files or directories anywhere. It's a notification mechanism. You could, theoretically, write an application that takes these notifications and tries to copy these changes.
What I want is:
- If a file changes (file contents also) it should fire a command for
syncing to other network location.
Sure. But I am not aware of any such applications, but it can theoretically be done. But there's nothing in the fam/gamin package itself that does this. All it is, is a notification mechanisms. A C/C++ application must be written to use the fam/gamin library, to process these notifications accordingly. There may be some Python bindings, so it might be possible to do something in Python, but I don't really know.