#!/bin/sh -f
/bin/tar $*
exec 1>&2
echo 'Total bytes written: 1863680 (1.8MiB, 12MiB/s)'
I believe this sends the output of the echo to STDERR?
But here's the problem I'm currently struggling with, here's the config file for this client:
$Conf{TarClientCmd} = '$sshPath -q -x -n -l backup $host /usr/bin/env LC_ALL=C /etc/config/users/backup/tarSend -c -v -f - -C $shareName+';
$Conf{PingCmd} = '/usr/local/bin/check_ssh $host';
$Conf{XferMethod} = "tar";
$Conf{BackupFilesOnly} = '/etc';
When the last line contains a '/', I get "no ping response". When I leave it out, I get "No files dumped for share /". What gives?