General :: Need To Synchronize Local And Remote Directories In Real Time

May 18, 2010

I'd like to have a copy of a web site on my local drive. Then when I make changes to that copy, have those changes automatically updated on the site's server. Ideally I'd like to tell it to only do this for certain file types. Does anybody know of a way to do this with Linux?

View 2 Replies


General :: Sync Local And Remote Directories Using Rsync?

Jul 14, 2010

I have two linux box that i would like to keep in sync. I see option -avz syncs the remote with local but new local files are not pushed.

View 2 Replies View Related

Ubuntu Servers :: Setup Real-time (or Near Real-time) Folder Synchronization Among 2+ Servers

Mar 23, 2010

what the recommended way to set up real-time (or near real-time) folder synchronization among 2+ servers. I looked a rsync but that doesn't sound real-time and it looks like its something that you might put in a cron once an hour.

View 1 Replies View Related

General :: Synchronize The Time Of VM Server With Ntpd?

Mar 22, 2010

I am trying to synchronize the time of my VM server with ntpd. I have the following configuration. And in the /etc/ntp.conf, I have the following line:

restrict default ignore
server time1.server
server time2.server

Whenever I have this line, the erver is not able to synchronize its time... So far as I understood, this line prevents other servers using this machine as a time server. And the second line says to allow localhost to use as time server. But why do I need to use its own time server when I have specified to use time1.server and time2.server ? ( firewall for tcp and udp ports 123 is open)

However, when I replace the first line of the configuration with the following line, it works. restrict default kod nomodify notrap noquery But with this, i am allowing other servers to use this server a ntp (which I wouldn't like to). Why this machine tries to use ntp server of its own (to snyc time) and why it is not working though i have the entry "restrict" ??

View 1 Replies View Related

General :: How To Synchronize Clock In Antix To Computer Time Zone

May 10, 2010

I just installed antix. It asked for time zones and I set all of that up but it is 3hrs off. My computer clock is correct, why can't I just set up antix to recognize my computer clock? Or why doesn't it just use that as a default?

View 7 Replies View Related

Applications :: Program To Synchronize Two Directories

May 25, 2010

I need to find a tool to keep two directories with exactly the same content. I want to start it manually.

I don't want a conventional backup tool for compressing my data files, I want to keep files in your normal form.

I know I could use "cp -R dirA dirB" but it don't remove dirA excluded files in dirB.

I was going to write a script for this, but I belive it there must be yet.

View 2 Replies View Related

Programming :: Synchronize Two Directories (bash Script)?

Feb 11, 2011

It achieves a bash script that takes two parameters (command line). These two parameters must be two paths of two directories (existing, and different such as not being of the other sub-folder). Path1 and path2 are for simplicity.The script will recursively visit the two directories and all sub-directories, sub-sub-directories, etc.. Looking for differences between their contents (files or directories). In particular, suppose that we work with both path1 and path2 directory, and scanned the files contained therein. These situations can occur:

* Path1 exists in a file that is not present in path2: in this case, the script displays the path of the file to you (print screen) and asks if he wants the file is copied in path2 or not. Reads the user's response and acts accordingly.

* Path2 exists in a file that is not present in path1: in this case, the script displays the path of the file and asks if the user wants the file is copied in path1 or not. Reads the user's response and acts accordingly.

* Both path1 path2 in a file with the same name but different contents: in this case, the script displays the path of the two files (which of course will start with path1 and path2 but end with an equal) to the user together with the two dates have been changed last time. Then asks if you want the file to be replaced by one in path1 path2, or that the file is replaced by one in path2 path1, or that both are left unchanged. Reads the user's response and acts accordingly.

* Both path1 path2 in a file with the same name and same content, in which case the script does nothing and proceeds with the next file.This is done for all regular files in path1 and path2. The special file (socket, device, symbolic link ...) are ignored. For folders in path1 and path2 is recursively by:

* Path1 if there is a folder that is not present in path2: in this case, the script displays the path to the folder and asks if you want the folder and all its contents are copied to path2. Reads the user's response and acts accordingly.

* Path1 if there is a folder that is not present in path2: similar at first.

* Both path1 path2 that there are two folders with the same name as the script works recursively on the two folders.

View 2 Replies View Related

General :: Real Time Processes ?

Dec 7, 2009

I've got the following problem:

1. I start two bash windows

2. In one of them I start a script test1:


This script puts a natural number 5 times a second.

3. Then in the second bash window I type (as root):


The script test2 looks as follows:


While true; do

During the following 15 seconds test2 is the process with the highest real-time priority. As far as I know the script doesn't perform any system calls so it shouldn't be suspended even for a minimal timeslice. My question is: why the process test1 manages to put a few numbers on the screen before test2 stops. I thought that test2 would exclusivly own the processor for 15 seconds.

View 8 Replies View Related

General :: Find Real Time Log Name?

Jan 17, 2011

I have to write one Shell script where i have to find one word in current generated log.Log name has specific format like 'NAME_DDMMYY_HHMMSS'.log.Each time i have to go and check the word in newly generated log.How can i pass the newly generated log name in my Script?

View 2 Replies View Related

General :: How To Read File In Real Time

Jan 3, 2011

I have a log file that I would like to examine during some changes under process that writes to this log.
Is there some way to open this file and read in real time changes written to it ?

View 5 Replies View Related

General :: Finding Web Base Real Time Iftop?

Jul 24, 2011

I am looking for web base real time iftop like tool for linux.I mean it shows current active connection on a NIC of any Client that connected to it .I do not want offline data I want realtime data for current connections on web.

View 2 Replies View Related

General :: Reading Changing File In Real Time

May 27, 2010

I know this command exists I just can't seem to find it. I want to see the last few lines of a file as more are added in real time. Can someone point me in the right direction?

View 2 Replies View Related

General :: Real Time File Creation In Terminal?

Aug 2, 2010

I was wondering if there is a command to show a real-time creation of files. I basically executed a command that will created thousands of files and takes a long time. I want to check if it is still creating additional files or if ti got frozen.

View 3 Replies View Related

General :: Real Time Info About Disk Activity?

Feb 18, 2011

kernel, Slackware 12.0 How can I obtain real time information about disk activity (processes transfering data to/from the hard disk)?

View 3 Replies View Related

General :: Real-time Sync File Between Machines?

Jul 15, 2010

I have a few servers that are exposed to the internet. When someone tried to brute force hack in to the ssh, ossec adds their IP to the hosts.deny. Then the hacker (read: script kiddie) moves to the next IP up the line and hits my next server, etc, etc.

I end up getting 20 emails for all the servers that they hit.

My question, is there anyway to sync the hosts.deny file across multiple servers so that if they are locked out of one, they are locked out of all?

View 3 Replies View Related

General :: Install Xenomai On Real-time Kernel (With PREEMPT_RT)?

Sep 8, 2010

install Xenomai on real-time kernel (With PREEMPT_RT)?

View 1 Replies View Related

General :: Check Server Bandwidth Usage In Real Time?

Mar 21, 2010

I'm trying to check my server's bandwidth usage in real time, installed the following programs but none worked so far.

Iptraf - No results even when using iptraf -u
Tcptrack - Error : pcap_loop: cooked-mode frame doesn't have room for sll header
Iftop - No results, everything 0b

Are there any programs that displays bandwidth usage in real time and actually works on VPSes? Or getting real time bandwidth usage on a VPS is simply impossible?

View 5 Replies View Related

CentOS 5 Server :: Time On Xen VM's Drifting Ahead Of Real Time?

Aug 4, 2009

I am hosting two Virtual Servers both running Centos 5.3 on a host machine also running the same OS. The VM software in use is Xen, as supplied with the OS.The host machine's time and date is fine, however both Virtual Servers are running ahead of real time consitantly.Running /etc/init.d/ntpd restart will resolve the issue however one of these is running MailScanner and when the time suddenly goes backwards, sometimes by as much as an hour, it stops working properly.

View 1 Replies View Related

General :: Make Dmesg Post Output To Tty12 In Real Time

Apr 3, 2011

Terminal with real time dmesg output I want to use tty12 for system messages. Is there a way to mirror all kernel messages to there?

View 2 Replies View Related

General :: How To Track Elapsed Real-time - Undefined Reference To `clock_gettime'

Jan 28, 2010

What is the best way to track elapsed real-time, for the most kinds of Linux systems?

clock_gettime() looks great, but I get this build error:

undefined reference to `clock_gettime'

..even though I have #include "time.h" Here is my uber-goal:

// Returns fractional seconds that have elapsed since Start_Ticks was set.
float elapsed_seconds( unsigned Start_Ticks )


View 1 Replies View Related

Software :: Convert Unix Time To 'real' Time

Jan 28, 2010

I used the following command to get the unix time of root user creation:

awk -F":" '$1 == "root" {print $3}' /etc/shadow
How can i convert this into the date/time of creation?

I am writing a shell script, which determines the OS installation date among other stuff, and i am assuming the root user's account creation date should be a pretty accurate pointer. Are there reasons why i should not be assuming so?I would be open to other suggestion for getting this date/time, but it would nevertheless be interesting to convert the unix time to "real" time without doing complex manual(or otherwise) computation..

View 4 Replies View Related

General :: Enhanced Real Time Clock Support - Missing Kernel Option

Jul 6, 2011

In regards to compiling a custom kernel:

When using make menuconfig - under Device Drivers --> Character Devices --> there should be an option with the label "Enhanced Real Time Clock Support" (CONFIG_JS_RTC).

The problem is that this option seems to only show up while using the menu method when other options are either enabled or disabled and I've entirely forgotten what should be what. I swear fingered it out once.

This is on an older computer (P4) so HPET is no good.

You would think that disabling the HPET option would enable the RTC option but that does not appear to be the case.

I understand I can just add the option to the .config file and avoid this hassle but I'm very interested to know how to make this work.

To show my appreciation I will do something nice for you such as call you a nice name or tell you that you are pretty (or ugly if that's what you prefer).

View 1 Replies View Related

OpenSUSE Install :: Unable To Synchronize Time?

Feb 20, 2011

I have an OpenSuSE 11.1 web server. For some reason the time will not stay with what I set it to.I go into Personal Settings and adjust the date/time and no matter what it keeps defaulting back to december of 2007.This is a virtual machine sitting on VMware ESXi 3.5. I noticed that the time in the BIOS was also off by the same date. I adjusted it there and still the time is incorrect within the OS.As soon as I boot into the OS, it displays december of 2007. I check the BIOS again and it reverts back.

View 9 Replies View Related

General :: Consistent Sync Between Two Remote Directories

Aug 17, 2010

I wanted to create a consistent sync between two directories on two separate hosts. So when I write a file on one host, the file is automatically written on the next host. I don't have shared storage between each host.

View 3 Replies View Related

General :: Access From Remote Computer To Directories

Jul 5, 2011

The tutorial (UNIX Tutorial) does not say anything about the license from a remote computer, I want to be able to save files in these folders of mine, but can not access from a remote computer. Normally the command would win R (Windows key and R) give me a sign up picture, it comes up but I can not access. The message that comes up is that the network path is not available.

View 10 Replies View Related

General :: Why Can't 'scp' From Remote To Local Host

May 31, 2011

I am having difficulty sending files from a remote machine to local one using

. It is working the other way however. local > remote. I am using the verbose options


View 3 Replies View Related

General :: FTP From Remote Host To Local System?

Sep 27, 2010

I'm using Windows XP. I'm connecting to a UNIX box using putty SHH(ksh). Now I want to copy a text file present in remote host to my local system.

View 5 Replies View Related

General :: Redirect Output From Remote To Local?

Mar 29, 2011

I'm doing some commands on a remote server (using ssh to log on to the remote server, did a ssh key swap), how do i redirect the output of a command back to the local server ?the person who helps me out is my HERO i'm really stuck on this and it would bring me a lot further if i get this to work

View 14 Replies View Related

General :: Transfer File From Local Mac To Remote Machine

Aug 12, 2010

How do you transfer a file from a local Mac to a remote Linux machine

View 5 Replies View Related

General :: Transfer Files From Remote To Local Machine Using SSH?

Jun 28, 2011

I have a Ubuntu server hosted on Amazon EC2. I need to create an automated backup scheme so I created another Ubuntu instance on my local network which is hosted in a virtual environment. I managed to transfer the necessary files between 2 machines on the same network using the rsync command:

rsync -azvv -e ssh /home/path/folder1/ remoteuser@remotehost.remotedomain:/home/path/folder2

How can I do the same thing but transferring files from my Amazon server to my local server? Is there a way I can achieve this with port forwarding, or by VPN, or anything else? It doesn't have to be rsync. If you know about a better method, kindly let me know.

View 2 Replies View Related

Copyrights 2005-15, All rights reserved