LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-20-2019, 02:34 AM   #1
undefineduser
LQ Newbie
 
Registered: Nov 2019
Distribution: Arch
Posts: 9

Rep: Reputation: Disabled
rsnapshot-diff - Output only if directories are not identical


Hey,

i use rsnapshot to create an exact match of a directory and want to check this afterwards with rsnapshot-diff if it was successful. I wrote a bash script to check if a file is empty (no output from rsnapshot-diff, so successful) or not (then there are instructions to contact me).

If I check two identical directories with rsnapshot-diff, I get the following output:

Quote:
Comparing /example to /tmp/example2/
Between /example and /tmp/example2:
44 were added, taking 81511131 bytes
44 were removed, saving 81511131 bytes

Is it possible to "suppress" an output here?

Last edited by undefineduser; 11-20-2019 at 02:39 AM.
 
Old 11-20-2019, 04:04 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,103

Rep: Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117
Send it to /dev/null.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Rsnapshot only backs up first server NoRearView Linux - General 0 04-07-2016 06:48 PM
[SOLVED] How to compare only the file names between two directories? (diff?) SparceMatrix Linux - General 11 09-24-2013 01:39 PM
autofs local map files identical but not identical to automount jwaldram Linux - Server 2 10-26-2012 10:35 AM
Identical disks that are not identical staphanes Linux - Hardware 8 03-11-2006 11:50 AM
copying multiple different files in different directories with identical file names nickleus Linux - Software 4 03-09-2006 01:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:48 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