Sponsored Content
Full Discussion: Rsync Issues
Special Forums UNIX and Linux Applications Rsync Issues Post 302896532 by treds on Tuesday 8th of April 2014 03:59:14 AM
Old 04-08-2014
Rsync Issues

Hi I am running several syncs from different servers to our data centre.
I am getting some issues with the rsyncs that i am running.
The OS are all red hat enterprise

The rsync command is as follows


Code:
#!/bin/bash
if [ -e /raid/.synclock ]
then
rsync -aWv  --stats progress --delete --ignore-errors --exclude .HS* 
--exclude ._* --exclude .DS_Store --exclude .Trashes --exclude .TemporaryItems 
--exclude .VolumeIcon.icns --exclude .apdisk --no-links /raid/  172.30.8.12:/gpfs/STUDIO_
RSYNCS/PEARTREE/ >> /raid/Rsync_logs/Peartree_rsync.`date +%w`.log 2>&1

else
	echo "lock file not present. Exiting"  >> /raid/Rsync_logs/Peartree_rsync.`date +%w`.log 2>&1
fi


The issues i am getting is firstly a time out.

Connection to 172.30.8.12 closed by remote host.
rsync: writefd_unbuffered failed to write 4 bytes to socket [sender]: Broken pipe (32)
rsync: connection unexpectedly closed (210 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(600) [sender=3.0.6]




and secondly a delete error


annot delete non-empty directory: PRODUCTION/PEARTREE/ARCADIA_GROUP_LTD/70003138_DP_CLOTHING_AND_ACCESSORY_SHOTS

Thirdly the excludes do not seem to be working correctly.

example
PRODUCTION/CHILLIWORLDWIDE/PORTFOLIOS/PHOTOGRAPHERS FOLIOS/DAN H/NEW PORTFOLIO/HI RES/DAVIDOFF/._ASHTRAY 1_07.tif

this should be excluded with the exclude ._*

thanks in advance
Treds
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

rsync vs cp

Hi guys, I will be copying data from one FS to another. (only once) These are local Filesystems... Which tool would be more efficient to use in this case? There is a huge amount of data that needs to be copied... (1.5TB) John (1 Reply)
Discussion started by: jsy
1 Replies

2. UNIX for Dummies Questions & Answers

rsync

i last night i copied a 400GB folder using rsync and ssh i did: rsync -r /mnt/500_GB ssh miguel@192.168.1.3:/mnt/1500_GB and it copied the folder fine all 400GB. The question is: If i put more files to that initial 400GB folder, which command can i run on my server for it to update the... (4 Replies)
Discussion started by: supermiguel
4 Replies

3. Shell Programming and Scripting

rsync

hi there I wonder if some-one can help. I am trying to use rsync on my mac to transfer a folder to a remote machine. I have logged into rysnc on my mac no problem and I'm trying to execute this command: rsync -a -e ssh /Users/myname/myfolder/sourcefolder/... (3 Replies)
Discussion started by: volterony
3 Replies

4. Shell Programming and Scripting

rsync

Am I correct in assuming that the following command: rsync -a /a /b does not make any changes on /a if there are files on /b that are newer (2 Replies)
Discussion started by: jgt
2 Replies

5. UNIX for Dummies Questions & Answers

Rsync Help?

Hi everyone, I'm pretty new to rsync and I've been tasked to "fix" an existing .sh to make it work the way I need it to. I have the following rsync set up on a cron job: /usr/local/bin/rsync --stats -qPzrtpl --delete --password-file=/var/run/.appprodrsync ... (2 Replies)
Discussion started by: Russell P
2 Replies

6. Shell Programming and Scripting

Rsync through java program - issues with remote connection failure

Hi Everybody, I am running rsync through my java application. The Java application will sync the files with remote machine. During our connection failure testing we noticed an issue running rsync through java program. The java application which is running at source side is not receiving any... (2 Replies)
Discussion started by: MVEERA
2 Replies

7. UNIX for Dummies Questions & Answers

rsync

Hi all, I'm new to the rsync world in hpux. Currently I have rsync going through the main public lan, but dude to traffic loads, I have been told that i need to use a dedicated rsync lan. I currently have 4 spare nics and the plan was to use one of these for the rsync, but I can't figure out... (2 Replies)
Discussion started by: linuxwanabe
2 Replies

8. Shell Programming and Scripting

Need help on rsync

Hi experts, We need copy 5TB data from one server to another (over a 10Gbps link). We plan to use rsync -av remote:/<path /local on destination server but there're few special requirements like: 1. data copy process should run only from 18:00 Hrs to 07:00 every day until copy is completed. Is... (1 Reply)
Discussion started by: magnus29
1 Replies

9. Shell Programming and Scripting

Facing issues with rsync

Hello Gurus, I am running rsync command to copy certain Directories and files into that directories to remote server. While ruuning the command all teh files has been copied but I am facing error. The below command I am executing to copy Directories and files to remote server: rsync -avrz ssh... (3 Replies)
Discussion started by: pokhraj_d
3 Replies

10. Shell Programming and Scripting

Rsync Error: rsync: link_stat failed: No such file or directory (2)

I wish to copy all the files & folder under /web/Transfer_Files/data/ on mymac1 (Linux) to remote server mybank.intra.com (Solaris 10) /tmp/ location I am using Ansible tool synchronize module which triggers the unix rsync command as below:rsync --delay-updates -F --compress --archive --rsh=ssh... (2 Replies)
Discussion started by: mohtashims
2 Replies
snmp_trapsnd(8) 					      System Manager's Manual						   snmp_trapsnd(8)

NAME
snmp_trapsnd - A program that sends SNMPv1 and SNMPv2 traps SYNOPSIS
/usr/sbin/snmp_trapsnd enterprise agent_addr generic specific timeticks [-v version] [-c community] [-h host] [-p port] [-tcp] [variable [type value]] OPTIONS
Specifies the type of message in which to send the PDU. The default version is SNMPv1. Use 2c to specify that the PDU be sent in an SNMPv2C message. Specifies the host name or dot-formatted IP address of the destination node to receive the trap message. If no host is specified, the trap is sent to the loopback interface. Causes a hexadecimal dump of the encoded packet to be sent to stdout. Specifies that the TCP transport be used instead of the UDP transport. If a connection cannot be established, the program silently sends the trap to the standard transport address (UDP 162). Specifies the port number on the destination host to which this message is sent. The default is 162, the well-known SNMP trap port. Specifies the community string used to send the trap. The default is public. OPERANDS
For SNMPv1 traps, this is the enterprise object identifier, in dot string notation, on whose behalf the trap is being sent (for example, 1.3.6.1.4.1.232). For SNMPv2 traps (specified with the -v 2c option), this represents the value of snmpTrapOID.0. For an SNMPv2 enterprise-specific trap, this is typically a concatenated string containing the enterprise OID, 0 (zero), and a single digit. See the generic parame- ter table. The hostname or IP address of the entity on whose behalf the trap is being generated (the agent-addr field in the V1 trap PDU). The special name local reports the host on which this program is running. This value is ignored if the -v 2c option is present. The generic trap identifier. This is a non-zero number. The following table summarizes the trap IDs: ------------------------------------------------------------------------ Description V1 generic Value V2 enterprise Value ------------------------------------------------------------------------ coldStart 0 1.3.6.1.6.3.1.1.5.1 warmStart 1 1.3.6.1.6.3.1.1.5.2 linkDown 2 1.3.6.1.6.3.1.1.5.3 linkUp 3 1.3.6.1.6.3.1.1.5.4 authenticationFailure 4 1.3.6.1.6.3.1.1.5.5 egpNeighborLoss 5 1.3.6.1.6.3.1.1.5.6 enterpriseSpecific 6 enterprise.0.x ------------------------------------------------------------------------ If the -v 2c option is present, this parameter is ignored. Specifies the enterprise-specific trap number. A value must be present, but is ignored if the -v 2c option is present or if generic is a value other than 6. Specifies the relative time associated with the generation of this trap message. This is the number of TIMETICKS (1/100 of a second) since the sending SNMP entity started. Specifies a list of MIB variables to be included in the trap message. See snmp_request(8) for information on specifiying SNMP MIB variables on the command line. DESCRIPTION
The snmp_trapsnd program encodes an SNMPv1 Trap protocol data unit (PDU) (see RFC 1215) or a SNMPv2 Trap PDU (see RFC 1905) into an SNMP message, and sends it to the specified host(s). All data fields in the trap PDU can be specified in the run-time arguments. SNMPv1 traps are uniquely identified by the combination of enterprise, generic, and specific operands. SNMPv2 traps are uniquely identi- fied by the value of snmpTrapOID.0 in the enterprise operand. RESTRICTIONS
The use of this command should be limited. SNMP traps should be sent rarely, when significant state changes occur on a managed node. SEE ALSO
Commands: snmpd(8), snmp_request(8), snmp_traprcv(8) RFC 1907, Management Information Base for Version 2 of the Simple Network Management Protocol (SNMPv2) snmp_trapsnd(8)
All times are GMT -4. The time now is 03:52 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy