Thanks for your help.
It almost worked. It came up with this error
Executing ArchivePreUserCmd: /bin/sh -c 'rm /archives/*'
/archives/*": 1: Syntax error: Unterminated quoted string
Archive failed: ArchivePreUserCmd returned error status 512
I tried the exact same command in a shell and it worked fine.
Regards,
Peter
On Thu, 2008-10-23 at 15:53 +0200, Tino Schwarze wrote:
> On Fri, Oct 24, 2008 at 02:36:52AM +1300, Peter McKenna wrote:
>
> > I'm trying to run a command rm /archives/*.gz as a ArchivePreUserCmd to
> > remove old archives on a removable disk before doing the latest archive.
> > It doesn't work.
> > The archives work fine but the old pnes are not deleted. If I check
> > UserCmdCheckStatus I get this error
> > Executing ArchivePreUserCmd: rm /archives/*
> >
> > rm: cannot remove `/archives/*': No such file or directory
> > Archive failed: ArchivePreUserCmd returned error status 256
> >
> > I tried another command like dd if=/dev/zero of=/archives/test count=512
> > and it worked fine, but cd /archives did not.
> > The archives folder has 777 permissions.
> >
> > I can't figure this out. Any help would be appreciated.
>
> Try /bin/sh -c 'rm /archives/*'
>
> The shell does the expansion of '*'.
>
> HTH,
>
> Tino.
>
-------------------------------------------------------------------------
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@lists.sourceforge.net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/