rsync minutiae


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers rsync minutiae
# 1  
Old 01-10-2010
rsync minutiae

I'm trying to optimize an rsync script that will backup data from one external drive to another. Should be pretty simple.

1) Is there a Web site that explains the first nine characters of an rsync output line? such as:

>f..tp... or >f+++++++

2) How is this deciphered:
Code:
sent 7587710196 bytes  received 58306 bytes  19185255.38 bytes/sec
total size is 26872249498  speedup is 3.54

thanks

mt

Last edited by Yogesh Sawant; 01-12-2010 at 04:57 AM.. Reason: added code tags
# 2  
Old 01-12-2010
man and links

I think you're doing '-i' so man says...

-i, --itemize-changes
Requests a simple itemized list of the changes that are being
made to each file, including attribute changes. This is exactly
the same as specifying --out-format='%i %n%L'. If you repeat
the option, unchanged files will also be output, but only if the
receiving rsync is at least version 2.6.7 (you can use -vv with
older versions of rsync, but that also turns on the output of
other verbose messages).

The "%i" escape has a cryptic output that is 11 letters long.
The general format is like the string YXcstpoguax, where Y is
replaced by the type of update being done, X is replaced by the
file-type, and the other letters represent attributes that may
be output if they are being modified.

The update types that replace the Y are as follows:


o A < means that a file is being transferred to the remote
host (sent).

o A > means that a file is being transferred to the local
host (received).

o A c means that a local change/creation is occurring for
the item (such as the creation of a directory or the
changing of a symlink, etc.).

o A h means that the item is a hard link to another item
(requires --hard-links).

o A . means that the item is not being updated (though it
might have attributes that are being modified).

o A * means that the rest of the itemized-output area con-
tains a message (e.g. "deleting").


The file-types that replace the X are: f for a file, a d for a
directory, an L for a symlink, a D for a device, and a S for a
special file (e.g. named sockets and fifos).

The other letters in the string above are the actual letters
that will be output if the associated attribute for the item is
being updated or a "." for no change. Three exceptions to this
are: (1) a newly created item replaces each letter with a "+",
(2) an identical item replaces the dots with spaces, and (3) an
unknown attribute replaces each letter with a "?" (this can hap-
pen when talking to an older rsync).

The attribute that is associated with each letter is as follows:


o A c means either that a regular file has a different
checksum (requires --checksum) or that a symlink, device,
or special file has a changed value. Note that if you
are sending files to an rsync prior to 3.0.1, this change
flag will be present only for checksum-differing regular
files.

o A s means the size of a regular file is different and
will be updated by the file transfer.

o A t means the modification time is different and is being
updated to the sender's value (requires --times). An
alternate value of T means that the modification time
will be set to the transfer time, which happens when a
file/symlink/device is updated without --times and when a
symlink is changed and the receiver can't set its time.
(Note: when using an rsync 3.0.0 client, you might see
the s flag combined with t instead of the proper T flag
for this time-setting failure.)

o A p means the permissions are different and are being
updated to the sender's value (requires --perms).

o An o means the owner is different and is being updated to
the sender's value (requires --owner and super-user priv-
ileges).

o A g means the group is different and is being updated to
the sender's value (requires --group and the authority to
set the group).

o The u slot is reserved for future use.

o The a means that the ACL information changed.

o The x means that the extended attribute information
changed.


One other output is possible: when deleting files, the "%i"
will output the string "*deleting" for each item that is being
removed (assuming that you are talking to a recent enough rsync
that it logs deletions instead of outputting them as a verbose
message).


List the command you are using if you want more help.
# 3  
Old 01-12-2010
Thanks, much.

Which man page is that from? My rsync lacked it (I hope that was obvious).

mt

BTW, Unix n00b, via OS X (possibly obvious)
# 4  
Old 01-14-2010
man rsync link

The strange thing is that I put useful links in the "trackback" section. I can't figure out where they show up. I'll just include them below...

man rsync

rsync progress

Ubuntu Forum Discussion
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. 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

2. 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

3. SuSE

rsync

I'm trying to use rsync to sync some data from my windows laptop to my linux openSUSE home sytem using cwRsync. The process has always worked until I got a new laptop and more or less at the same time decided to rebuild my linux box. on linux rsync --version rsync version 3.0.7 protocol... (2 Replies)
Discussion started by: giessenw
2 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. 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

6. 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

7. Solaris

please help in rsync

Dear all, I m trying to rsync a file remotely but it is throwing following error. #/opt/sfw/bin/rsync -v -a -e ssh user@xx.xx.xx.xx:/export/home/naresh/utils.sh bash: rsync: command not found rsync: connection unexpectedly closed (0 bytes read so far) rsync error: error in... (10 Replies)
Discussion started by: naree
10 Replies

8. 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

9. UNIX for Dummies Questions & Answers

rsync

I want to do rsync only for the difference in the last 30 days. How do I specify the "30 days" on the command line below? >rsync -avz prj# /rsource /destination Thanks for help (6 Replies)
Discussion started by: wz253
6 Replies
Login or Register to Ask a Question