framps / raspiBackup

Create and keep multiple backup versions of your running Raspberries
https://raspibackup.linux-tips-and-tricks.de
GNU General Public License v3.0
826 stars 75 forks source link

Make tar call language insensitive #638

Closed framps closed 1 year ago

framps commented 1 year ago
( eval "$cmd" 2>&1 1>&5 | grep -iv " Removing" | tee -a $MSG_FILE $LOG_FILE; exit ${PIPESTATUS[0]} ) 5>&1

works only if language English is used.

tar: Entferne führende „/“ von Elementnamen
tar: /var/lib/samba/private/msg.sock/17860: Socket ignoriert
tar: /var/lib/samba/private/msg.sock/596: Socket ignoriert
tar: /var/lib/samba/private/msg.sock/17861: Socket ignoriert
tar: Entferne führende „/“ von Zielen harter Verknüpfungen
tar: Entferne führende „/“ von Elementnamen
tar: /var/lib/samba/private/msg.sock/17860: Socket ignoriert
tar: /var/lib/samba/private/msg.sock/596: Socket ignoriert
tar: /var/lib/samba/private/msg.sock/17861: Socket ignoriert
tar: Entferne führende „/“ von Zielen harter Verknüpfungen

See #637

Same applies for executeDD. Check other language aware greps.