On Thu 30 March 2006 14.23, Maxim Kudelya wrote:
> brian wrote:
> > I'm trying to back up a remote machine over SSH. The set is "xxx:/". The
> > prune for "xxx:/" is "tmp sys mnt proc dev".
> >
> > When I test the configuration with -type filelist, I get
> >
> > ERROR: non-zero exit from:
> > ssh xxx cd "/" && find . -regex
> > "\./\(lost\+found\|sys\|proc\|dev\|mnt\|tmp\)/.*" -prune -o -xdev ! -type
> > s ! -regex ".*/[Cc]ache/.*" ! -regex
> > ".*~"$ -print > /tmp/27977/filelist.27977; cat /tmp/27977/filelist.27977
> > 1>&2; cat /tmp/27977/filelist.27977 | gzip -4; x=([EMAIL PROTECTED]); i=0;
> > while [ $i -lt [EMAIL PROTECTED] ]; do [ ${x[$i]} -eq 0 ] || exit ${x[$i]};
> > i=$(($i+1)); done
> >
> > The error was
> >
> > bash: line 1: /tmp/27977/filelist.27977: No such file or directory
> > cat: /tmp/27977/filelist.27977: No such file or directory
> > cat: /tmp/27977/filelist.27977: No such file or directory
> > 0+1 records in
> > 0+1 records out
> >
> > It looks like flexbackup created a directory in the local /tmp and then
> > tried to redirect some output on the remote machine to a nonexistent
> > directory in the remote /tmp. Am I making some mistake?
>
> Hi. I'm also got this error and I don't know what that mean.
> Is this really bad?
>
> Thanks.
>
> ---
> Maxim Kudelya.
> Lingnu Open Source Consulting.I've changed/commented out in my flexbackup the following places, to correct the invalid tmp directory on remote hosts as well as not reqocnizing bash 3.0 shells. # flexbackup.pl --version flexbackup version 1.2.1 (http://flexbackup.sourceforge.net) $Id: flexbackup,v 1.185 2003/10/10 14:12:09 edwinh Exp $ # diff -bwi $(which flexbackup) bin/flexbackup.pl 272c272,273 < system ('rm', '-rf', $cfg::tmpdir) if (defined($cfg::deltmpdir)); --- > ### wor/15.01.06 Removed > ###system ('rm', '-rf', $cfg::tmpdir) if (defined($cfg::deltmpdir)); 2730,2734c2731,2736 < if ($cfg::tmpdir eq '/tmp') { < $cfg::tmpdir = $cfg::tmpdir .'/'.$$; < mkdir ($cfg::tmpdir) || die "Can't create temporary directory, $!"; < $cfg::deltmpdir = 1; < } --- > ### wor/20060115 - Commented due to bug > ### if ($cfg::tmpdir eq '/tmp') { > ### $cfg::tmpdir = $cfg::tmpdir .'/'.$$; > ### mkdir ($cfg::tmpdir) || die "Can't create temporary directory, $!"; > ### $cfg::deltmpdir = 1; > ### } 5407c5409 < if ($ver =~ m/^2/) { --- > if ($ver =~ m/^2|^3/) { Hope that helps you, are since then running flexbackup daily/hourly/monthly without any problem, great little helper. -- --Robert
pgpvQEvBhoTem.pgp
Description: PGP signature
