Skip to main content
ExLibris

Knowledge Assistant

BETA
 
  • Subscribe by RSS
  • Back
    Primo

     

    Ex Libris Knowledge Center
    1. Search site
      Go back to previous article
      1. Sign in
        • Sign in
        • Forgot password
    1. Home
    2. Primo
    3. Knowledge Articles
    4. Backup Package: backup p7 fails with error message "/bin/bash:: Too many arguments"

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

    1. Last updated
    2. Save as PDF
    3. Share
      1. Share
      2. Tweet
      3. Share
    1. Additional Information
    • 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
    View article in the Exlibris Knowledge Center
    1. Back to top
      • Back Office with two views with the same view code
      • Backup Package: Primo software backup (p4): error message "tar: [...] file changed as we read it"
    • Was this article helpful?

    Recommended articles

    1. Article type
      Topic
      Community Content Type
      How To
      Content Type
      Knowledge Article
      Language
      English
      Product
      Primo
    2. Tags
      1. Backup & Restore - Primo
      2. contype:kba
      3. Primo
      4. Prod:Primo
      5. Type:General
    1. © Copyright 2025 Ex Libris Knowledge Center
    2. Powered by CXone Expert ®
    • Term of Use
    • Privacy Policy
    • Contact Us
    2025 Ex Libris. All rights reserved