Shawn writes:

> I hope this is something simple -- I can't get my archive to run via cron
> (as user backuppc).  Nor will it run manually in a terminal.
> 
> My command is:
> /usr/share/backuppc/bin/BackupPC_archiveHost
> /usr/share/backuppc/bin/BackupPC_tarCreate /usr/bin/split /usr/bin/par2
> emailpool -1 /bin/gzip .gz 70000000 /var/lib/backuppc/backuparchive 5 *
> 
> and the output is always:
> Usage: /usr/share/backuppc/bin/BackupPC_archiveHost tarCreatePath splitPath
> parPath host bkupNum \
>           compPath fileExt splitSize outLoc parFile share
> 
> I've checked the paths and spaces and everything appears correct.  Running
> the archive via the web interface works fine.  Copy/pasting the command used
> by the web interface from the log files onto a terminal line produces the
> same result - just the command summary.  sudo -u backuppc does the same
> thing as does running it as a user or root.  The operating system is ubuntu
> 6.06.
> 
> -1 means last complete backup correct?  (I've changed this number anyways
> and it doesn't seem to matter.)  split, gzip, par2 are all in the folders as
> indicated and appear to be working perfectly as the web interface works
> great.

If you run the command manually you need to quote the * at the end, eg:

    /usr/share/backuppc/bin/BackupPC_archiveHost                            \
    /usr/share/backuppc/bin/BackupPC_tarCreate /usr/bin/split /usr/bin/par2 \
    emailpool -1 /bin/gzip .gz 70000000 /var/lib/backuppc/backuparchive 5 "*"

Craig

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
BackupPC-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Reply via email to