Subj : Re: Backup script tuning To : paulie420 From : MeaTLoTioN Date : Fri Sep 16 2022 10:58:21 On 15 Sep 2022, paulie420 said the following... pa> pa> my first attempt at checking exit codes. Do things l00k right? pa> pa> Well, I've tested and I'm getting err0rs. :/ Try setting retVal after running the rsync, $? is only populated on completion either successfully "0" or failure "1-127" of any command. So, you need really; rsync blah blah retVal=$? do some stuff... if [[ $retVal -gt 0 ]]; then # some stuff happened but it failed else # some stuff happened and succeeded fi --- |14Best regards, |11Ch|03rist|11ia|15n |11a|03ka |11Me|03aTLoT|11io|15N |07ÄÄ |08[|10eml|08] |15ml@erb.pw |07ÄÄ |08[|10web|08] |15www.erb.pw |07ÄÄÄ¿ |07ÄÄ |08[|09fsx|08] |1521:1/158 |07ÄÄ |08[|11tqw|08] |151337:1/101 |07ÂÄÄÙ |07ÄÄ |08[|12rtn|08] |1580:774/81 |07ÄÂ |08[|14fdn|08] |152:250/5 |07ÄÄÄÙ |07ÄÄ |08[|10ark|08] |1510:104/2 |07ÄÙ --- Mystic BBS v1.12 A47 2021/12/13 (Linux/64) * Origin: thE qUAntUm wOrmhOlE, rAmsgAtE, uK. bbs.erb.pw (1337:1/101) .