General :: Ssh: Continuously Synchronize Files, One Way?
Aug 1, 2011
Scenario: An IDE is set up on a Linux desktop box, editing PHP files locally. Every time I save a file, I want this change to appear on the linux server where Apache is running. The server has ssh (and samba and nfs for that matter).As a reference, when I edited files on Windows, I finally came over WinSCP as the exact tool I needed - WinSCP have just this feature present, with initial synch and then continuous update, using the filesystem watch service: "Keep Remote Directory up to Date".
On Linux, one could argue that sshfs could be employed to sidestep the need for synchronization entirely. On windows, a samba-share would do the same. However, I want the IDE to work with local files (on a SSD disk!), not having to go over the network to do PHP indexing and whatnots, which takes ages.But sshfs might be a part of the solution nevertheless - so that the continuous synchronization just needed to be done between two local directories.
Actuaaly i am creating watch on one directory in which files are continuously coming.Is there any command which can give listing of all files who have come in last 24 hrs.
I compiled the latest version of libgpod (0.7.3GIT) and gtkpod (0.99.15GIT) and loaded my ipod touch 3g. I can then drag and drop files to it, but when I try to synchronize, I get the error message Code: Please specify the command to be called on the 'Tools' section of the preferences dialog. Does anybody know what the command should be?
I have made a backup of my files on a remote server and I'd like to maintain that backup using rsync. The problem is that the timestamps don't match perfectly between the source and the backup.
What can I do? I'd rather not replace all the files in my backup because there is so much data it would take a very very long time.
Is there perhaps a way to compare checksums and then update the timestamps? Both are low power boxes with no GUI and only BusyBox CLI access.
I have two computers with Ubuntu 10.10 on them, a desktop and a laptop. I have two options for handling them: Try and keep them the same Accept that they have different 'personalities' and branch off their on way
However, I've chosen the first option because I like to keep my files and settings the same on both computers. I am in the process of extracting a tar archive I made of my entire desktop's hard drive (9.7GiB) onto my laptop, so after this is done they will be exactly the same. However, upon turning the laptop on with my freshly-copied system, things will become different. If I take the laptop to school, for example, and do stuff there, then come back home, and do stuff on my desktop, how can I sync these computers (both ways!) with the new changes at the end of the day/week/whatever?
I have dual boot on my machine - Windows Vista and Fedora 12.
I have noticed that while I am on Vista, the fan runs only intermittently, but while I am on Fedora, it runs continuously. I have tried to tweak the power and CPU settings for Fedora, but did not get anywhere.
Should I be worried that the fan is running continuously? Or is it okay, the fan is just doing its job?
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 restrict 127.0.0.1. 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 127.0.0.1" ??
how to uncheck option to synchronize clock with UTC. This option is being asked at installation time. I couldn't remember text correctly but above text will give you hint. how can I uncheck that option using command.
I use Thunderbird in different computers so I configured it so that the datas are on an external drive. It works fine except that it seems that the contacts are still saved on the different computers and not on the external drive. It is strange since I have all datas for each profile on my external drive and all Mail and folders are there. I use different versions of Thunderbird (3.1 and under). how I could also have my contacts datas on my external drive?
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?
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?
I'm trying to write a script that will continuously ping a server and then send out an email when the server is down, and then when it is back up. Then, continuing with monitoring. I would like to not run this in cron, because I don't want to script to run with multiple instances.
For example, Ping a server every minute. -If successful, do nothing. -If failed to ping, then send out email stating that server is down. -Once ping is successful, then send out email stating that server is up.
I only want it to send an email once after a failure, so the end user isn't get an email every minute that it fails. Once it is successful, then send the email (one time), stating that the server is up. Then, continue to ping and if fails again, repeat the process.
My system: Ubuntu 9.10/gnome Gateway SX2802 with Intel Q8300, 4GB ram, 750GB drive only 6 months old. My internal drive is read/writing continuously without stopping no matter what I am doing. It begins immediately after boot. It simply runs and runs nonstop. This is with NO APPLICATIONS running. This is a problem which cropped up suddenly after 5 months of running just fine. What I have tried:
1. Disconnecting Internet - no change
2. Looking at processes in System Monitor. Well, everything says "sleeping" and there isn't anything that looks obvious to me, but there are a LOT of processes. I am afraid my drive will simply burn up.
How can I setup my Linux server to automatically synchronize its server clocks? We need to ensure our server clocks are set to the correct time always.
In a lot of programs I write, I would love the option to simply hit a key without disturbing the data, and have some other action take place.
An example loop would be,
Code: for(some var = 0; some var != infinity; some var++){ if(poll(left mouse button)){ stop doing this stuff; } . . . doing other stuff, because the left mouse button wasn't pressed }
but, I don't want the loop to pause for more than a the tiniest fraction of a second, and I certainly don't want it to sit there waiting for me to do, or not do, something.
What is it I'm looking for?
(Oh, and if you haven't guessed, c/c++ are the languages of choice for this operation - I don't care which you might have in mind when submitting an answer -- in fact, it need not be either of those languages.)
Before I could not even get to identify the Ipaq on the usb port.
Now, after blacklisting ipaq I got this:
Quote:
But still can't see it on the computer nor in media folder, what goes next? I also installed activesync trhough wine, but still no success on actively detecting the device.
On Ubuntu 10.10 x64, when trying to sync via right click "Ubuntu One/Synchroniser ce dossier" Synchronize to Ubuntu One, nothing happens. When within the "Documents" folder I select "Synchroniser ce dossier" Synchronize this folder from the upper right section of the window I get an error message: "Erreur lors de l'activation du dossier. Impossible d'activer la synchronisation du dossier /home/ao/Documents avec Ubuntu One"
ao@Ordi-AO-Ubuntu:~$ u1sdtool --list-folders No folders ao@Ordi-AO-Ubuntu:~$ u1sdtool -s State: QUEUE_MANAGER
[Code]....
Within the Ubuntu One app, my computer is identified and connected.
I wanted to know, I it is possible to synchronize two systems. I�ve got one System on an ext. hard- drive, and one on a desktop computer. An example for better understanding:If I update on the ext. HD and I connect the ext. HD to the desktop, the desktop should be updated to. Or, when I create a new user on the desktop, and I connect the ext. hd, the user should get created to.Is this possible?
I need to change attributes in my /etc/fstab file.
I cant change my fstab file because apparently Kwrite only crashes when accessed by Konsole in SU mode.
I type this input/output:
linux-mg28:/home/me # kdesu kwrite /etc/fstab kdesu(13370): Session bus not found KCrash: Application 'kdesu' crashing... sock_file=/root/.kde4/socket-linux-mg28/kdeinit4__0
[Code]....
I have a dual XP/suse11.3 system. I even removed my old Suse along with all its partitions, leaving only the NTFS XP, re-downloaded the 11.3 ISO image, burned a new fresh install disk and reinstalled 11.3. I updated the software in YaST.
I still can't modify my fstab file. But I can locate the file in Dolphin and click it to open in a Kwrite window. Read only of course.
I have an IBM ThinkPad T43 on which I run Ubuntu 10.10. Everything works fairly smoothly except that I notice my laptop fan runs continuously. When I turn on the machine it revs up until boot-up is complete, then it shuts off for a few minutes, and then it comes back on and never turns off until I'm through working.Is this strictly a hardware problem, or is there something about Linux that causes the computer to run hot and so causes the fan to work hard? Is there a setting that I could check to see if the fan is working properly? I don't use any exotic programs or run video intensive games, so there's no reason why the computer should run especially hot
I just bought a Nokia N900 and it's a beautiful device!
Naturally, since it runs Linux, it's unable to synchronize with other Linux devices. It's one of those wacky universal constants you can't seem to understand.
I've tried using SyncEvolution, which supports funambol, but it does not work. It keeps complaining about a failed authentication or whatnot.
When I right click a folder and select synchronize it does not sync. It continues to say synchronize on one. When I selected my music folder back in December it worked, but now it doesn't. It continues to work for the music folder and 1 other folder. I can't simply add my documents folder.How do I force one to sync my documents folder.
How to sync notes to Dropbox, but after the upgrade to 11.04, I can't get Tomboy to sync.
I get the same error as here: [url]
Where the details panel is blank.
But I don't know what hidden file he's talking about. When I press ctrl+h in all the Tomboy folders, nothing comes out, but there are a few manifest.xml files.