1 |
Neil Bothwick wrote: |
2 |
> On Wed, 7 Apr 2021 03:22:18 -0500, Dale wrote: |
3 |
> |
4 |
>>>> This seems to be working. Since I added the null bit to the script |
5 |
>>>> itself, it hasn't sent a email. I don't know if it will if it fails |
6 |
>>>> but I still have weekly backups as well. |
7 |
>>> If you only redirect stdout to /dev/null and leave stderr alone, you |
8 |
>>> should still see errors. But a better option would be to have your |
9 |
>>> script only send output when something goes wrong. |
10 |
>> That sounds complicated. I've never been good at what y'all call |
11 |
>> scripting. I'm just glad it does it for me so I don't forget. |
12 |
> Not really. ">/dev/null" redirects stdout to null. You added 2>&1, which |
13 |
> redirects stderr to stdout, effectively throwing away any error messages. |
14 |
> Post your backup script and we'll be able to help more. |
15 |
> |
16 |
> |
17 |
|
18 |
I left the last bit off as well. I just put in the null part. I may do |
19 |
something to force it to screw up, like umount the drive, and see what |
20 |
it does. To be honest tho, I just wanted the emails to stop for that |
21 |
script. I have other backups anyway, just not as frequent. |
22 |
|
23 |
Dale |
24 |
|
25 |
:-) :_) |