LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   rsnapshot-diff - Output only if directories are not identical (https://www.linuxquestions.org/questions/linux-software-2/rsnapshot-diff-output-only-if-directories-are-not-identical-4175664593/)

undefineduser 11-20-2019 02:34 AM

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?

syg00 11-20-2019 04:04 AM

Send it to /dev/null.


All times are GMT -5. The time now is 10:06 PM.