If you want to skip error sockets-related code during backup of whole filesystem you will be surprised there’s no –ignore-sockets switch. But there’s elegant method to to that:
cd / sudo find . -type s > /tmp/sockets.lst if sudo tar zcvpf $TMP_FILE --one-file-system --exclude-from=/tmp/sockets.lst -C / . then echo backup OK fi