Menu

#27 backup_src "mv" command can not handle space

open
nobody
5
2003-06-22
2003-06-22
Anonymous
No

Hello,

I recently started using kbackup. Thus far I found it to
be the most helpful and easy-to-use backup utilty
available to the community. I just wanted to say thanks
to the team before I report a bug :). THANKS! Keep it
up!

Configuration:
OS: Debian sarge
package: kbackup
version: 1.2.11

Problem:
I got the following error message when running "Backup":
The last command returned a non-zero result (1).
This indicates an error during its execution. The error
message generated was:
mv: when moving multiple files, last argument must be a

I captured the move command as follows:
mv -
f /tmp/kbtmp3348/kbtmp3348 /var/lib/kbackup/Data/test/
Log03-06-21--09:37:30
PM

Solution:
The arguments for the "mv" command needs to be inside
double quotes.

Proposed change:
Change line 398 FROM:
mv -f $TMP/$TMPFILE $logfile 2>$STDERR
TO
mv -f "$TMP/$TMPFILE" "$logfile" 2>$STDERR

Good luck and Thanks,
-Nhat
nkhong@cyberxroads.com

Discussion


Log in to post a comment.

MongoDB Logo MongoDB