BackupPC-users

Re: [BackupPC-users] BackupPC_deleteBackup.sh not working

2012-01-19 01:53:41
Subject: Re: [BackupPC-users] BackupPC_deleteBackup.sh not working
From: Matthias Meyer <matthias.meyer AT gmx DOT li>
To: backuppc-users AT lists.sourceforge DOT net
Date: Thu, 19 Jan 2012 07:51:15 +0100
Estanislao López Morgan wrote:

> Hi backupers, I am projecting a migration in my backup server file system,
> to a LVM structure in order to enlarge my actual and future disk capacity.
> For that pourpose, I have to delete some backups but I am having problems
> with script /BackupPC_deleteBackup.sh. When I execute it, this is the
> result:
>  ./BackupPC_deleteBackup.sh
> ./BackupPC_deleteBackup.sh: 42: declare: not found
> ./BackupPC_deleteBackup.sh: 43: declare: not found
> ./BackupPC_deleteBackup.sh: 44: declare: not found
> ./BackupPC_deleteBackup.sh: 46: Syntax error: "(" unexpected
> 
> I have already installed bash and other scrips works properly... so the
> problem is with that script in particular.
> 
> Someone knows why?
> 
> Thanks in advance
> 
> Regards
Probably BackupPC_deleteBackup.sh starts with a line "#!/bin/sh" and will us 
/bin/sh as shell. I would believe /bin/sh is a softlink to /bin/dash.
Change this solftlink or run "bash BackupPC_deleteBackup.sh ..." instead.

br
Matthias
-- 
Don't Panic


------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
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/

<Prev in Thread] Current Thread [Next in Thread>