Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

rsync output

Tags:

rsync

I am new to rsync and I do not understand the output I am getting, can someone help me out,

the output contains lines such as,

<f.st...... somefile.txt <f+++++++++ someOtherfile.zip .d..t...... someDir/ 

I do not understand what the options on the left mean, and I am having trouble finding the answer on google. Thanks.

like image 772
ForYourOwnGood Avatar asked Jul 11 '09 15:07

ForYourOwnGood


People also ask

How do I get rsync to show progress?

Method 1: Using –progress option to see the rsync progress:Use the “–progress” in the rsync command and “-av” to get a summary at the end of file transfer, consisting of transfer rate, sent/receive bytes, speed of transfer, and total file size.

What exactly does rsync do?

rsync is a utility for efficiently transferring and synchronizing files between a computer and a storage drive and across networked computers by comparing the modification times and sizes of files. It is commonly found on Unix-like operating systems and is under the GPL-3.0-or-later license.

What is verbose rsync?

-v, --verbose This option increases the amount of information you are given during the transfer. By default, rsync works silently. A single -v gives you information about what files are being transferred and a summary at the end.

Is rsync faster than cp?

rsync is much faster than cp for this, because it will check file sizes and timestamps to see which ones need to be updated, and you can add more refinements. You can even make it do a checksum instead of the default 'quick check', although this will take longer.


1 Answers

I've paraphrased here the relevant portion of the manpage for people who have trouble finding it:

The first character indicates what is happening to the file:

  • < means that a file is being transferred to the remote host (sent).
  • > means that a file is being transferred to the local host (received).
  • 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.).
  • h means that the item is a hard link to another item (requires --hard-links).
  • . means that the item is not being updated (though it might have attributes that are being modified).
  • * means that the rest of the itemized-output area contains a message (e.g. "deleting").

The second character indicates what type of directory entry it is. Specifically:

  • f for file
  • d for directory
  • L for symbolic link
  • D for device
  • S for special file (e.g. socket or fifo)

The remaining columns are described below:

  • c means either that a regular file has a different checksum or that a symlink, device, or special file has a changed value.
  • s means the size of a regular file is different and will be updated by the file transfer.
  • t or T:
    • t means the modification time is different and is being updated to the sender's value
    • T means that the modification time will be set to the transfer time
  • p means the permissions are different and are being updated to the sender's value
  • o means the owner is different and is being updated to the sender's value
  • g means the group is different and is being updated to the sender's value
  • . unused

The following columns may not be present, depending on your transfer options

  • a means that the ACL information changed
  • x means that the extended attribute information changed
like image 110
tylerl Avatar answered Sep 25 '22 21:09

tylerl