Skip to main content
ExLibris
  • Subscribe by RSS
  • ExLibris Dev

    Backup Package: backup p7 fails with error message "/bin/bash:: Too many arguments"

    • Article Type: General
    • Product: Primo

    Problem Symptoms:
    -- Start backup type p7 (Primo publishing data) by entering the following command as UNIX user root:

    # /exlibris/backup/scripts/exec_backup_main p7


    -- The backup fails and the following error message appears in the log file prm_pub_p7_Detail_<date>_

    Cause:
    Line 8 of the script primo_pub in the Backup Package includes the following obvious mistake:


    1 #!/bin/csh -f
    2 echo ".................................................."
    3 echo "Begin $BKP_TYPE backup of $ORACLE_SID at `date`"
    4 echo ".................................................."
    5 set files_no_slash = `echo $PRM_PUB | sed 's/^\///'`
    6 cd /
    7 echo "DOING :tar -cvf -" $files_no_slash " | $GZIPEX | split -b2000m - ${DEVICE}.gz_"
    8 /bin/bash: q: command not found
    9 if ($status == 0) then
    10 setenv STATUS 0
    [...]

    Resolution:
    Remove the following line from the script primo_pub:

    /bin/bash: q: command not found

    Additional Information

    A fix for the bug in the script primo_pub has been requested.

    Category: Backup & Restore - Primo

    Subject: Primo


    • Article last edited: 3/18/2014
    //doorbell.io feedback widged