Re: Dar and anacron

Neil Darlow via Dar-support <[email protected]> Wed, 02 Apr 2025 17:28:06 +0100
Newsgroups gmane.comp.sysutils.backup.dar.support
Message-ID <[email protected]>
--===============4585913688486236285==
Content-Type: multipart/alternative;
 boundary=----CEP0T3JF8ORCQ2E06A6AFEWAWCIKFP
Content-Transfer-Encoding: 7bit

------CEP0T3JF8ORCQ2E06A6AFEWAWCIKFP
Content-Type: text/plain;
 charset=utf-8
Content-Transfer-Encoding: quoted-printable

Hi,

Have you tried appending:

>/dev/null 2>&1

to your dar invocations to prevent any dar output from triggering anacron =
to send the email?

Regards,
Neil Darlow


On 2 April 2025 14:08:45 BST, Trevisi Roberto <jcclww2@gmail=2Ecom> wrote:
>the dar_static version is 2=2E7=2E13
>
>Il giorno mer 2 apr 2025 alle ore 15:07 Trevisi Roberto <jcclww2@gmail=2E=
com>
>ha scritto:
>
>> Ciao Denis,
>>
>> you were right, there is a second dar command in the script to test the
>> created file (-t)
>> I put the "-Q" option to the second instance too, but the anacron email
>> with that message
>> is sent anyway=2E
>>
>> I redirect all to a log file and, the strange thing is that before I pu=
t
>> the first "-Q" option
>> correctly I found two messages in log file, when I put the first "-Q"
>> option correctly I
>> found one message in log file, now that I put the second "-Q" option
>> correctly the
>> message there is no more in the log file, but anacron sends the email
>> with that message anyway
>>
>>
>> Roberto
>>
>>
>> Il giorno mar 1 apr 2025 alle ore 19:34 Denis Corbin <dar=2Elinux@free=
=2Efr>
>> ha scritto:
>>
>>> On 01/04/2025 18:52, Trevisi Roberto wrote:
>>> > Hi Denis,
>>>
>>> Buongiorno Roberto,
>>>
>>> >
>>> > anacron keeps sending the email with the message
>>> >
>>> > the dar command in the script is:
>>> >
>>> > /usr/bin/env dar_static -vm -vf -Q -z -D -R / -c "$file" \
>>> >     par2 compress-exclusion --cache-directory-tagging -P boot/efi -P
>>> dev
>>> > -P proc -P run \
>>> >     -P sys -P tmp -P var/tmp -P var/cache -P root/=2Ecache \
>>> >     -P home/user/=2Ecache -P home/user/snap/firefox/common/=2Ecache =
\
>>> >     -P media -P cdrom -P mnt -P lost+found &>> "$logfile" &&
>>> >
>>> > I tried to put the "-Q" option immediately after "dar_static" and, a=
s
>>> above,
>>> > after the verbose options, but in both cases anacron sends the email
>>>
>>> if -Q is passed to dar, dar just skips the display of the message,
>>> whatever is the context=2E Anacron has no power to change that=2E
>>>
>>> I have double check that the information from command-line down to the
>>> code triggering this message is properly propagated (version 2=2E7=2E1=
7, but
>>> this par has not changed since 2=2E7=2E0 at least this the behavior is
>>> likely the same with any 2=2E7=2Ex version)=2E
>>>
>>> Can you check you don't have several lines calling dar in you crontab
>>> and/or anacron, for all users, and whether they all have -Q option set=
?
>>>
>>> By the way, which dar_static version are you using?
>>> 'dar_static -V' will tell you=2E=2E=2E
>>>
>>> >
>>> >
>>> >
>>>
>>> Ciao,
>>> Denis
>>>
>>

--=20
Sent from my Android device with K-9 Mail=2E
------CEP0T3JF8ORCQ2E06A6AFEWAWCIKFP
Content-Type: text/html;
 charset=utf-8
Content-Transfer-Encoding: quoted-printable

<html><head></head><body><div dir=3D"auto">Hi,<br><br>Have you tried append=
ing:<br><br>&gt;/dev/null 2&gt;&amp;1<br><br>to your dar invocations to pre=
vent any dar output from triggering anacron to send the email?<br><br>Regar=
ds,<br>Neil Darlow<br></div><br><br><div class=3D"gmail_quote"><div dir=3D"=
auto">On 2 April 2025 14:08:45 BST, Trevisi Roberto &lt;jcclww2@gmail=2Ecom=
&gt; wrote:</div><blockquote class=3D"gmail_quote" style=3D"margin: 0pt 0pt=
 0pt 0=2E8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;=
">
<div dir=3D"ltr">the dar_static&nbsp;version is&nbsp;2=2E7=2E13</div><br><=
div class=3D"gmail_quote gmail_quote_container"><div dir=3D"ltr" class=3D"g=
mail_attr">Il giorno mer 2 apr 2025 alle ore 15:07 Trevisi Roberto &lt;<a h=
ref=3D"mailto:jcclww2@gmail=2Ecom">jcclww2@gmail=2Ecom</a>&gt; ha scritto:<=
br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0=2E=
8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"lt=
r">Ciao Denis,<div><br></div><div>you were right, there is a second dar com=
mand in the script to test the created file (-t)</div><div>I put the "-Q" o=
ption to the second instance too, but the anacron email with that message</=
div><div>is sent anyway=2E</div><div><br></div><div>I redirect all to a log=
 file and, the strange thing is that before I put the first "-Q" option&nbs=
p;</div><div>correctly I found two messages in log file, when I put the fir=
st "-Q" option correctly I</div><div>found one message in log file, now tha=
t I put the second "-Q" option correctly the&nbsp;</div><div>message there =
is no more in the log file, but anacron sends the email&nbsp;</div><div>wit=
h that message anyway</div><div><br></div><div><br></div><div>Roberto</div>=
<div>&nbsp;</div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" clas=
s=3D"gmail_attr">Il giorno mar 1 apr 2025 alle ore 19:34 Denis Corbin &lt;<=
a href=3D"mailto:dar=2Elinux@free=2Efr" target=3D"_blank">dar=2Elinux@free=
=2Efr</a>&gt; ha scritto:<br></div><blockquote class=3D"gmail_quote" style=
=3D"margin:0px 0px 0px 0=2E8ex;border-left:1px solid rgb(204,204,204);paddi=
ng-left:1ex">On 01/04/2025 18:52, Trevisi Roberto wrote:<br>
&gt; Hi Denis,<br>
<br>
Buongiorno Roberto,<br>
<br>
&gt; <br>
&gt; anacron keeps sending the email with&nbsp;the message<br>
&gt; <br>
&gt; the dar command in the script is:<br>
&gt; <br>
&gt; /usr/bin/env dar_static -vm -vf -Q -z -D -R / -c "$file" \<br>
&gt;&nbsp; &nbsp; &nbsp;par2 compress-exclusion --cache-directory-tagging =
-P boot/efi -P dev <br>
&gt; -P proc -P run \<br>
&gt;&nbsp; &nbsp; &nbsp;-P sys -P tmp -P var/tmp -P var/cache -P root/=2Ec=
ache \<br>
&gt;&nbsp; &nbsp; &nbsp;-P home/user/=2Ecache -P home/user/snap/firefox/co=
mmon/=2Ecache \<br>
&gt;&nbsp; &nbsp; &nbsp;-P media -P cdrom -P mnt -P lost+found &amp;&gt;&g=
t; "$logfile" &amp;&amp;<br>
&gt; <br>
&gt; I tried to put the "-Q" option immediately after "dar_static" and, as=
 above,<br>
&gt; after the verbose options, but in both cases anacron sends the email<=
br>
<br>
if -Q is passed to dar, dar just skips the display of the message, <br>
whatever is the context=2E Anacron has no power to change that=2E<br>
<br>
I have double check that the information from command-line down to the <br=
>
code triggering this message is properly propagated (version 2=2E7=2E17, b=
ut <br>
this par has not changed since 2=2E7=2E0 at least this the behavior is <br=
>
likely the same with any 2=2E7=2Ex version)=2E<br>
<br>
Can you check you don't have several lines calling dar in you crontab <br>
and/or anacron, for all users, and whether they all have -Q option set?<br=
>
<br>
By the way, which dar_static version are you using?<br>
'dar_static -V' will tell you=2E=2E=2E<br>
<br>
&gt; <br>
&gt; <br>
&gt;<br>
<br>
Ciao,<br>
Denis<br>
</blockquote></div>
</blockquote></div>
</blockquote></div><div dir=3D"auto"><div class=3D'k9mail-signature'>-- <b=
r>Sent from my Android device with K-9 Mail=2E</div></div></body></html>
------CEP0T3JF8ORCQ2E06A6AFEWAWCIKFP--


--===============4585913688486236285==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============4585913688486236285==--