General :: How Does Rsync Behave When Synchronizing
Nov 24, 2010
I have a file in a directory mysite/a.php on machine A and machine B. The files will not have any difference initially.On machine A if a.php is changed and then when a sync is done from machine B to A, will a.php have the change or will it be overwritten? What about directories?
is there any way by which the cat command can be made to behave like less or more?i.e when less or more used with a text file as argument, will display the file 1 page at a time, allowing us to navigate through the file.So any way for cat to display the file 1 page at a time?P.S : I don't want to pipe the output of cat to less or more.
I want to disable the CAPS LOCK key and replace it by pressing SHIFT twice in quick successions (like you do in Android and iOS devices). Disabling the Caps Lock key is easy using xmodmap but is it possible to do what I want to do with the SHIFT key?
I switched to zsh, but I dislike the completion. If I have 20 files, each with a shared prefix, on pressing tab, zsh will fully complete the first file, then continue going through the list with each press of tab. If I want one near the end, I would have to press tab many times.
In bash, this was simple - press tab and I would get the prefix. If I continued typing (and pressing tab), bash would complete as far as it could be certain of. I find this behavior to be much more intuitive but prefer the other features of zsh to bash.
Is there a way to get this style of completion? Google suggested setopt bash_autolist, but this had no effect for me (and no error message was printed upon starting my shell).
Am I the only person who can't get ubuntu one working properly?1) if I right-click a folder and ask to synchronize it to ubuntu one, there is absolutely no feedback at all (nothing seems to be synchronized, no icons are added to the folder, no progress bar, nothing).2) if I open the Ubuntu one preferences, it states "synchronizing in progress", and it keeps doing that. again; no progress, no icons, no nothing.Disconnecting reconnecting doesn't seem to matter.Rebooting (I know, I was desperate..) doesn't seem to matter.How do you guys manage to use this. I mean, the interface of ubuntu one is pretty clean, so there is not much to configure, which is good, if it would work out of the box .
I installed 10.04 today and while messing around with it I decided to try syncing a folder. While it worked and the file in it was uploaded and removed when deleted I can't stop syncing the folder.
Is it possible to syncronize certain settings in ubuntu between several computers, such that when I change them on one they change on all?If not, is it possible to at least use the settings of one computer as the initial settings of another?These are the settings I am interested in:
I'm writing an application that uses PortAudio to generate sound. I need to synchronize certain GUI changes with the sound stream. The callback function receives a struct PaStreamCallbackTimeInfo that seems to have the timing information I need, but there's no documentation on what the various fields mean. Through experimentation, I've found that the currentTime field is the time that the callback was called (in retrospect, that seems pretty obvious), but what do the inputBufferAdcTime and outputBufferDacTime fields mean?
(Actually, PortAudio calls the callback fast enough that I could just use the currentTime to get the synchronization close enough, but still... it's the principle of the thing.)
I am trying to synchronize the time of a PC using NTP using a server on LAN. Both the PCs do not have internet. I have made changes to the /etc/ntp.conf file of both the server and client . But still on rebooting is shows Synchronizing with time server failed. I am attaching the ntp.conf file of both server and client.
I am compiling some c++ code trying to connect it with libi2cbrdg.a library where I have a lot of functions. So when I am doing this gcc -g rand.c -lasound -li2cbrdg -o rand.I don't have missed functions instead I have some other C/C++ connected errors, when I am using g++ compiler like this g++ -g rand.c -lasound -li2cbrdg -o rand.it does not see functions inside that library but everything fine with c++ code.How can I make g++ behave like gcc in this case?
I have 16 linux servers that use /etc/hosts files to see and talk with each other. I'm adding servers to this pool of servers. It is required to do host resolution via the /etc/hosts files. DNS or NIS are not alternatives. Aside from manually editing each of the 16+ /etc/hosts files every time I add a server or editing one /etc/hosts file on one server then scp'ing it to all the other servers, is there anyway to edit the /etc/hosts on one server and "push" it onto the other servers that need the new /etc/hosts file?
Everywhere I've looked on the Net, there hasn't been any suggestion except for the options I mention here.
Thought I'd post it here because it's more server related than desktop... I have a script that does:
[Code]....
This is used to sync my local development snapshot with the live web server. There has to be a more compact way of doing this? Can I combine some of the rsyncs? Can I make the rsync set or keep the user and group affiliations? Can I exclude .* yet include .htaccess?
When I run rsync --recursive --times --perms --links --delete --exclude-from='Documents/exclude.txt' ./ /media/myusb/
where Documents/exclude.txt is
- /Downloads/ - /Desktop/books/
the files in those directories are still copied onto my USB.
And...
I used fetchmail to download all my gmail emails. When I run rsync -ar --exclude-from='/home/xtheunknown0/Documents/exclude.txt' ./ /media/myusb/ I get the first image at url.
I have a tiny shell script to rsync files between two servers and remove the source files.
This script works fine, when it has been initiated manually or even when the rsync command is executed on the command line.
But the same script doesn't work, when I try to automate it through crontab.
I am using 'abc' user to execute this rsync, instead of root, as root login to servers are restricted in all of our servers, by us.
As I mentioned earlier, manual execution works like charm!
When this rsync.sh is initiated through crontab, it runs the first command(chown abc.abc ...) perfectly without any issues. But the second line is not at all executed, and there is no log entry i can find at /mnt/xyz/folder/rsync.log.
does anyone of you know an application for automatically synchronizing data of a Linux-PC to a Windows XP-PC?The form should be echo (changes only on the Linux-PC).Only the Linux-PC should have the application.
In Konqueror, when browsing files the display would open in the "Advanced Embedded Text Editor" which was really handy. In Dolphin it opens in Kate (KWrite by default but I changed it.) Is there a way to make Dolphin behave like Konqueror?
I have a 6+2 disk RAID5 array. If I do mdadm --detail, it shows me 6 active, working 8, failed 0 and spare 2, as expected. However, in Disk Utility, it tells me I have two arrays, the one I expect, but with 6+1; and another with no disks. When I look through my disks, I see there's one which is 'different'. While I had made all my 8 disks partition-less, this one seems to have developed a partition somehow - "Linux RAID autodetect". Also, when I click on 'Go to array', it takes me to this other odd diskless array.
How can I get my disks to behave themselves?
(Also, I think these disks seem to move around devices for some reason).
some days ago I upgraded my 10.04 Ubuntu to 10.10. Upgrading took quite some time as I had already witnessed in previous upgrades. Everything seems to work fine after this operation but for the Grub. I can no longer set the timer! It means I have to manually push "Enter" to start booting. I also noted that I cannot change the font size of the Grub any longer. I have not seen such behaviour during previous upgrades (I started upgrading with U 9.04).
Toshiba L505-10M with dual boot W7/U 10.10 500 GB HD & 6 GB RAM
In my corporate environment, I'm required to run a Windows machine that acquires a VNC session on a machine in the server farm. My windows machine is dual head with different resolution monitors ( 1600x1080 on left and 1920x1200 on right). If I create a VNC session that spans the monitors, then maximizing a window in the VNC session causes it to stretch across both my monitors.
Instead, I want a "maximize" event to behave like it does on my windows machine -- I only want to maximize to the display that the window is on.
How can I define what, what I'll call, "maximize regions"? Regions in the VNC graphical plane where when I click "maximize", the window only expands to the region it currently ( and mostly) resides in.
Can I do this in gnome, X, xrandr, or some other magical interface?
I just set up NIC bonding in Ubuntu 10.4, following these instructions, and I've got it working except for one problem: Every time I up or down a network device, or every time the system reboots, my routes go all to hell with eth0 and eth1 entries next to my bond0 entries. When the eth0 and eth1 entries show up, my connection is hosed and I have to go in via the maintenance IP to kill each route one at a time, leaving only bond0. Here's how I want my routes to look at all times:
Code: Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 10.87.9.0 0.0.0.0 255.255.255.0 U 0 0 0 bond0 0.0.0.0 10.87.9.1 0.0.0.0 UG 100 0 0 bond0 Here's my /etc/network/interfaces:
possible to make a flashdrive behave like keyboard. I recon there must be some good reasons not to. Because I can imagine some situations where this comes in verry handy.For example a script that executes gives login tab password enter and readies the next login for the next computer.This way I could just plug the flashdrive in, let type, plug it out and continue.
Each time I pass with a cursor over a widget on the desktop its side bar appears, of course it should because of resizing and moving or do some setting, but that is very boring if I do not intend to use that bar. Screenlets behave better, the setting menu appear only with proper clicking. Is there a way to manage jumping widget menu bar not to appear on every cursor passing ?
I'm using Ubuntu 10.04 LTS server and Postgresql 8.4. I have a .sh script that is run by cron every other hour. That works fine. The .sh script includes an rsync command that copies a postgresql dump .tar file to a remote archive location via ssh. That fails when run by cron; I think because it is (quietly) asking for the remote user's password (and not getting it). I set up the public/private ssh key arrangement. The script succeeds when run manually as the same user that the cron job uses, and does not ask for the password. I am able to ssh to the remote server from the source server (using the same username) and not get the password prompt (both directions), so why doesn't rsync work? I even put a .pgpass file in the root of that user's directory with that user's password, and the user/password are identical on both servers.
I think the problem is rsync is not able to use the ssh key correctly. I tried adding this to my script but it didn't help.
Code:
Here is the rsync command embedding in the .sh script.
I've recently installed openSuse 11.4 64bit with KDE 4.6 and that's when the trouble started. If I put a data or mp3 cd in the drive it can be mounted. Simple audio cds refuse to mount, giving me only the option to play on one of the audio players. Since I wanted to move some music to the computer I've had to resort to windows to copy files then transfer them. How can I force KDE/Suse to behave the way I want or do I have to revert to an earlier version with KDE3.5? I suspected that System Settings/Removable Devices was where I needed to be but nothing I did worked. So then I tried playing with System Settings/Device Actions and again nothing seemed to work. I can't mount the CD manually,I get this (using su -c "mount etc"
I have a monitoring program ( GIT link to sourceforge ) which I'm trying to use to track when a child exits/dies/whatever. I'm calling fork(), then close for 0,1,2, and then opening /dev/null, monitored.stdout, and monitored.stderr as a replacement. I'm not sure if I've done something incorrect (perhaps I should use dup2 for explicit assignment?) but it appears that printf() messages are just being blackholed. I've tried setting the line buffering as a last ditch effort. On a different system, using code similar to the spawn_monitor() function, this appears to work fine, which makes me think I'm relying on some implementation specific detail.
Relevant function, for those who don't click links: