It's definitely something to do with how the * character is interpreted
because rm /archives/test deletes the test file and runs the archive
perfectly.
Regards,
Peter
On Thu, 2008-10-23 at 16:29 +0200, Tino Schwarze wrote:
> On Fri, Oct 24, 2008 at 03:16:45AM +1300, Peter McKenna wrote:
> > 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.
>
> Try using double quotes instead of the single quotes, e.g.
> /bin/sh -c "rm /archives/*"
> If it does not work, create a shell script, e.g.
> /usr/local/sbin/archivepreusercmd.sh with the following content:
>
> #!/bin/bash
> #
>
> rm /archives/*
>
> Make it executable, then use it as ArchivePreUserCmd.
>
> 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
[email protected]
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/