LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 11-26-2021, 03:37 PM   #1
flos
Member
 
Registered: Feb 2009
Location: Shropshire, UK
Distribution: Mint
Posts: 30

Rep: Reputation: 2
rsync output tailoring


I want to eliminate part of rsync's default output.
I refer to the last two lines emitted by an rsync command.
These are the ones that look like
Code:
sent 171,915 bytes  received 11 bytes  114,617.33 bytes/sec
total size is 3,007,789,737  speedup is 17,494.68
In common with many (I suspect), I use rsync in a bash script to create a backup routine which is especially designed for my local setup (three computers on a local, wired network).
There are many rsync command lines, and I don't need repetitions of the information on bytes sent, received, total or speedup.
I know I could redirect output to a file, but that leaves me with no confirmation of what has just been saved.
I hope someone knows their way around the info=FLAGs and can help.
 
Old 11-27-2021, 02:30 AM   #2
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,309
Blog Entries: 3

Rep: Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721
Perhaps this is what you mean?

Code:
rsync --dry-run --archive --hard-links --verbose --info=stats0 /source/dir/ /destination/dir/
The --verbose ensures that the files copied are listed by name. The --info=stats0 ensures that no summary follows.
 
Old 11-29-2021, 03:52 AM   #3
flos
Member
 
Registered: Feb 2009
Location: Shropshire, UK
Distribution: Mint
Posts: 30

Original Poster
Rep: Reputation: 2
Solved, thanks

Thanks to Turbocapitalist.
The piece of code I was looking for was
Code:
--info=stats0
It did exactly what I was looking for.
I have yet to find a succinct listing of the --info= flags.
 
Old 11-29-2021, 03:55 AM   #4
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,309
Blog Entries: 3

Rep: Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721
Have you tried the following?

Code:
rsync --info=help
It is mentioned in the manual page, but kind of buried due to the length of the manual page.
 
  


Reply

Tags
backup, rsync, script



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
rsync solaris + ld.so.1: rsync: fatal: libiconv.so.2: open failed: xxx_anuj_xxx Solaris / OpenSolaris 25 02-23-2012 03:23 AM
rsync can not rsync files with include filter... xiutuo Linux - Server 2 07-23-2010 02:10 AM
Could I run rsync to download files from a server without rsync daemon? Richard.Yang Linux - Software 1 09-18-2009 04:08 AM
Rsync server vs rsync over ssh humbletech99 Linux - Networking 1 10-18-2006 12:10 PM
Windows Rsync Upload to Linux Rsync - permissions inspleak Linux - Software 0 10-12-2004 02:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 09:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration