Iam comparing 2 filesystem using the below command.rsync -navrz --exclude=logs/* /opt/otm/ glrrd@105.78.7.100:/opt/otm/The output showing the files which are same in size and timestamp that are to be sync.Iam using rsync 2.6.3 version so i dont have itemize changes option to debug the problem.Is there anyway i can find the how rsync is finding the difference between the 2 filesytemEx: filesystem1
-rw-rw-r-- 1 glog glog 39132 Nov 26 2009 FinJ-code_2003-10-22_12h17_CEST+0200.jar
-rw-rw-r-- 1 glog glog 39132 Nov 26 2009 finj.jar
-rw-rw-r-- 1 glog glog 954987 Nov 26 2009 jakarta-taglibs-standard-1.1.2.zip
Is there a way to limit the amount of data that goes in to an rysnc log. The problem I have is that I email myself the log file to make sure it went ok but sometime the log is hugeHere is what I am doing with rsyncrsync -azHK --delete-after /home/ /mnt/usbbackup/home/ >/backup-log/backup.txt
I try to use rsync for backing up some directories and I have to following problem: some files have permissions that prevent me from running rsync under my own user id. So I run it under root using the option "-a" which according to the man page should preserve the permissions, owner and group information:
However, when I run this under root, the directories created in the backup location get user root and group root while ordinary files keep the original user and group. What am I missing here? How can I get rsync to preserve the user and groups for all files, including directories?
Here is a command to illustrate my problem Code: sudo rsync -a /home/youruser /tmp
If you try that and terminate with Ctrl-C after a few seconds, there will be a directory /tmp/youruser where the directories contained within are owned by root group root.
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.
Could not convert filename to Unicode: 'H20 dinkus_.pdf': Invalid or incomplete multibyte or wide character Could not convert filename to Unicode: 'ANT0012 H20 Brochure_OFFSET_paths_.pdf': Invalid or incomplete multibyte or wide character ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Quote: file has vanished: "/media/sputold_server/2007 Archive/Icon?" file has vanished: "/media/sputold_server/2007 Archive/Resources/stage 1/images/resources/5yr stamp?1.tif"
WHat should i do. How can i delete the files which are on receiver but not on main server
I have benn using ubuntu on an old laptop to run a samba server and a torrent server and it has been working fine till a few days ago when it stopped letting me write any files to the disk, So i tried deleting some of the files i no longer needed to free up some space and the disk usage didnt decrease so i checked it out using the disk usage analyzer and it says its full but i know for sure its not.
I'm not too sure if this is the right topic to post in but if it isn't please move it to the correct topic. I recently opened some ports for my Playstation 3 and the connection test on the PS3 tells me that the ports are open . But when I execute this command
nmap -p 0-60000 192.168.1.5 I get this
Quote:
Starting Nmap 5.21 ( http://nmap.org ) at 2010-10-16 20:54 AUS Eastern Daylight Time Nmap scan report for PS3 (192.168.1.5) Host is up (0.00063s latency). All 60001 scanned ports on PS3 (192.168.1.5) are closed MAC Address: **:**:**:**:**:** (Sony Computer Entertainment)
Nmap done: 1 IP address (1 host up) scanned in 4.12 seconds
I could be executing the wrong command or something but I have read through the manual and couldn't find anything that helped. I have tried this command on other machines that I have opened ports for and get similar results except for a few Ephemeral ports (80,443 etc.) which also makes me wonder why these aren't listed as open on the PS3?
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.
one of them is a TV with an HDMI input. The login screen shows up on the tv, so if someone is watching a movie, I have to pause it to switch inputs and login. Other than that, everything is fine. How do I get the login screen to show up on the main monitor?
Yesterday on start resume from hibernate, it looked as if my encrypted home directory was unmounted; or at least instead of my $HOME contents I got a bunch of files related to this.
I rebooted the system, and since then my desktop has been rendering icons for every file in my home directory, but not updating the icons until the next reboot, if I change anything in $HOME while it is running.
I opened the gconf-editor and checked: the box for using the home dir as the desktop is not checked. I even tried toggling it and the option that controls drawing the desktop on/off in every possible combination. Nadda. The only thing that works is turning off drawing the desktop.
I've been using grsync to backup my home directory to an external drive (connected via USB), but lately I've been getting errors very early in the process and I was hoping someone might be able to help me fix them (or at least understand what I'm doing wrong).
Here's the output of a window titled "rsync: stopped" and in red "completed with errors!" rsync: write failed on "/media/LaCie/myhomefolder/.cache/champlain/osm-mapnik/6/12/23.png": Input/output error (5) kyconway/.cache/champlain/osm-mapnik/6/12/26.png rsync error: error in file IO (code 11) at receiver.c(322) [receiver=3.0.8] rsync: connection unexpectedly closed (486 bytes received so far) [sender] rsync error: error in rsync protocol data stream (code 12) at io.c(601) [sender=3.0.8] Rsync process exit status: 12
I've been running Debian for a while, and now have the chance to do some enterprise-level experimentation. I stumbled across a very cheap EMC Clariion CX300 fibre RAID unit on eBay with 10 disks (£90!), so I snapped it up with a fibre HBA. It's not a SAN, technically a DAS in its current configuration. I'd like to know how hard it is to set up one of these as an actual disk device in Debian.I tried installing the HBA (an Agilent Tachyon XL2 PCI-X card, 32 and 64-bit modes) in my current 'live' server (a Celeron 1.2GHz-based machine), but while Debian detected it as a FC controller card, mapping the LUNs within Navisphere on the CX to the host caused nothing (obvious) to show up in the OS. From what I've read about setting up SANs (not DASs, there seems to be precious little info on setting up these), there's firmware involved with the card, and there are no references to getting a Tachyon running under Linux.
I also snagged a good deal on a PowerEdge 1850 server, but as it's the PCI-Express version, the Tachyon won't fit, so I'm considering buying a PCI-E HBA. I found a QLogic QLE2460 for a good price, but I'm hesitant to buy it, in case I still can't get Debian to see the disks. I'd most like to have the device connected to the PowerEdge instead of the Celeron machine. Have I missed a step in the configuration, or is there anything I can do to test if the system is working as it should be? The units we use at work are much simpler: set the RAIDs up, map the host LUNs and the disk shows up in Windows. I'm also sure I've set everything up correctly on the CX, as the same LUN is available to Windows. Just need to get Debian to see something on the end of the HBA!System Specs:Live Server: Celeron 1.2GHz, 512MB RAM, Intel D815EEA2 board, SATA soft-RAID hard drives, PCI Gb Ethernet and USB2.0, Agilent Tachyon XL2 PCI-X FC HBA, Debian 6.0.1PowerEdge 1850: 2x 3.2GHz Xeons, 6GB RAM, SCSI RAID disks, PCI-E riser, planned QLogic QLE2460 PCI-E HBARAID Unit: EMC Clariion CX300, 10x 146GB FC disks, 2Gbps Fibre-channel interfaceThe PowerEdge is the planned replacement for the Celeron machine, which started life as my experimentation box and became my personal live server. Storage is holding it back, so I'd love to add a further five disks to the CX and have nearly 2TB of RAID-protected storage.
logging in a server through putty in the same network when i executed last command its showing system ip logged in time and logged out time the output as followsthis is my system oot pts1 xx.xx.xx day month date time in time out timeand similarly am geeting other than this likeroot :0day month date time still logged in this is from more than 3 days its logged in
I have a issue in that my 30gb creative zen is showing up fine as a media device, I can delete and add files. It is showing up as z 3.9gp partition. I formatted inside the Zen I formatted inside Windows Vista It showed 28,800ish megs free and it still showed up at a 3.9 gig partition There is no .trash folder How can I fix this? Qlix installed don't know if that matters.
I'm using Debian Jessie, KDE 4.14.2. At some point over the last 6 months or so a couple of related problems appeared on my desktop...
1) Sometimes sound appears not to be working and I have to go to change the output device to get this to work (right click on kmix, audio setup, hardware setup, device conguration dropdown to change between analog output and speaker.. -see screenshot [URL] ....). This is often a problem but is particularly a problem if I boot up with a headphone/speaker plugged into the jack...then if I remove this, it doesn't output to the laptop built-in speakers unless I change the settings.
What I want it to do is fairly straightforward, I just want it to use the laptop speakers when nothing is plugged in, but use headphone/external speaker output if i put something in the headphone jack.
2) I have lots of sliders when I click on kmix in my taskbar - I don't really understand what all of these do, they seem like duplicates...and also, sometimes sliders for specific applications seem to behave independently, defaulting to very quiet, or so on - generally behaving strangely! see: [URL] .... for a screenshot.
Similarly, when I click the button to go to mixer, I get multiple duplicate tabs, some with lots of sliders again - some with none: [URL] ...., [URL] ...., and [URL] .....
I also have a problem, much more minor, but perhaps related: when I'm playing music in banshee, if I reduce volume using the system volume (keyboard shortcuts/ kmix), it goes down in banshee...but doesn't go back up again. so if i mute system sound then unmute it, banshee stays muted and i have to use the specific setting within banshee...
I'm not sure where these problems came from as it all previously worked fine within kde for me. Perhaps i messed something up intentionally or perhaps an update caused this ...
i have a problem with ps, and pgrep when used in a script. with the -A option it does not print all processes and pgrep on a known running process returns nothing. So I made a script with nothing but "ps -A" and the shebang and it does show all of them. Also, ps -A on the command line is showing all processes. I am running this script as root and it is owned by root.edit: I have ps -A in a function called in a case and if I put ps -A outside the function and case it shows all. how is where it's at changing it's output
This is an extremely weird issue that I can't find any help with on Google. It is minor but extremely annoying.
When I type in a linux command in the terminal, (e.g. "ls -la"), and then press enter, the cursor goes to the next line and just sits there, as if its processing some long command.
If I press enter again, I see the ls output as well as my prompt twice. It's like the terminal window isn't auto-scrolling, but I've also seen this happen when there wasnt even enough text in the console screen to warrant a scrollbar. Has anyone seen this before and know what I need to do? I hope what I'm asking about makes sense.
I'm currently running Testing/Sid on my machine with Fluxbox as my window manager.Yesterday I noticed that I was not getting full output from commands using lxterminal.First off I tried another terminal,which was the xfce4-terminal.The result being exactly the same,missing output.I have also tried re-generating my xorg.conf,and yes you guessed it no change.Getting desperate I also tried dpkg-reconfigure console-setup,still missing output from lxterminal.So to sum up why do I get the full output with xterm but not lxterminal which I have been using previously for some time.
I'm still learning about bash scripting. Not too long ago, with a lot of help from folks on this forum, I developed the following script to keep Slackware -stable up-to-date:
iam trying to sync file server data into backup server machine by command- rsync -avu path/of/data ipaddress-of-backup-server:/path/where/to/save after running it ask for root password and manually it is successful.but i want to make it automatic.for that i also tried cronjob and also generated authentication key but iam not successful in login automatically..anybody know how to authenticate root to login for storing data in backup server.
I'm trying to rsync files and directories from a RedHat linux host(v 4.5 & 4.7) to a Windows server 2003R2 Standard Edition with cygwin running. I'm executing the rsync command from the cygwin shell. The transfer involves rsync'ing approximately 1 TB of data from the linux server to the windows server. After about 280+GB of data transfer, the transfer just dies.
There seems to be no particular file or directory that the transfer stops at. I'm able to rsync GB's of data from other linux hosts to this cygwin server with no problem. Files and directories rsync fine.The network infrastructure is essentially the same regardless of the server being rsync'ed in that it is GB Ethernet running through Cisco GB switches. There appear to be no glitches or hiccups across the network path.
I've asked the folks at rsync.samba.org if they know of any problems or issues. Their response has been neutral in that if the version of rsync that cygwin has ported is within standards then there is no rsync reason this problem should happen.I've asked the cygwin support site if they know of any issues and they have yet to reply. So, my question is whether the version of rsync that is ported to cygwin is standard. If so, is there any reason cygwin & rsync keep failing like this?
I've asked the local rsync on linux guru's and they can't see any reason this should fail from a linux perspective. Apparently I am our company cygwin knowledge base by default.
I want to run rsync on server A to copy all files from Server B when they are newer than 7 days.(find . -mtime -7) I don't want to delete the files on Server B.
Has anyone had any experience on using SUA(Services for UNIX Applications) rsync to "pull" files down to the Win2k3R2 server from a linux rsync host?I was trying to use cygwin rsync before until I found out from cygwin that the cygwin port of rsync was "flakey" and would fail intermittently for no apparent reason. cygwin suggested I use SUA or SFU for rsync services.
I've looked for/ am looking for any experience using SUA rsync to copy files down from a linux rsync host to the Windows host via rsync on the Windows host. Also, if you have done this successfully, do you have any pointers/caveats you can share on how you got it working? What I am basically looking to do is copy files and subdirectories of files from a linux host using rsync to some static location on a Windows server on a scheduled basis so that I can backup the windows server to tape using Symantec's Backup Exec application.
I'm doing it this way to avoid deploying the Remote Agents for either linux or Windows on the target hosts. As an alternative I've seen reference to a product called DeltaCopy that uses a native Windows rsync port with the native linux port of rsync to do what I need also.I realize this is not a strictly linux question, but more of a hybrid as I'm moving data to and from Windows and linux hosts. So, if this is too Windows-y a question, please say so and I'll withdraw my question.
I am running Valgrind on my program. It shows me two errors but mentions only addresses against them and not actual code even on a debug build.
The output is
==23002== Memcheck, a memory error detector. ==23002== Copyright (C) 2002-2005, and GNU GPL'd, by Julian Seward et al. ==23002== Using LibVEX rev 1575, a library for dynamic binary translation.