BackupPC-users

Re: [BackupPC-users] rm command does not work in ArchivePreUserCmd

2008-10-23 11:27:33
Subject: Re: [BackupPC-users] rm command does not work in ArchivePreUserCmd
From: Dale King <dale AT daleking DOT org>
To: backuppc-users AT lists.sourceforge DOT net
Date: Fri, 24 Oct 2008 02:05:25 +1100
On Fri, Oct 24, 2008 at 03:51:55AM +1300, Peter McKenna wrote:
> Tried that, but no difference.
> Executing ArchivePreUserCmd: /usr/local/bin/archivepreusercmd.sh
> 
> rm: cannot remove `/archives/*': No such file or directory
> Archive failed: ArchivePreUserCmd returned error status 256

Sounds like that directory is already empty.  I'd add the -rf options to
rm: rm -rf /archives/*

Or you could use find piped into xargs if you want to avoid quotes and
shell globs altogether.

-- 
Dale

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/