Re: [BackupPC-users] rm command does not work in ArchivePreUserCmd
2008-10-23 10:27:44
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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.
Do this:
echo -en '#!/bin/bash\nrm -f /archives/*\n' > /usr/local/bin/delarchives
chmod 755 /usr/local/bin/delarchives
/usr/local/bin/delarchives # Make sure it works
then set your ArchivePreUserCmd = '/usr/local/bin/delarchives'
Regards,
Adam
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFJAIlbGyoxogrTyiURAmT8AJ0ame432hjLVg/wFDZsq4s/7qOfTgCgtvEg
zCXCtXEV0/ByC/AnqLKwTc4=
=bU4R
-----END PGP SIGNATURE-----
-------------------------------------------------------------------------
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/
|
|
|