#We try to run tar on the remote computer
if `ssh $computer ". /tmp/.backup/env ;\
cd $filesystem ;\
- tar cfl - . $forrigecmd \
+ \${TAR:-tar} cfl - . $forrigecmd \
--exclude-from=/tmp/.backup/exclude \
| gzip" \
| dd of=$DATE.tmp 2>/dev/null`
echo "could not copy exclude.txt to $computer :("
#create env if it does not exist
- if [ ! -f $confdir/env.$computer ]
- touch $confdir/env.$computer
+ [ -f $confdir/env.$computer ] || touch $confdir/env.$computer
#copy env to client
scp $confdir/env.$computer $computer:/tmp/.backup/env