Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 14 of 14
  1. #1
    Member
    Join Date
    Jul 2003
    Posts
    275

    Default cpbackup returning tar errors

    root@server [/]# /scripts/cpbackup --force
    tar: You must specify one of the `-Acdtrux' options
    Try `tar --help' for more information.
    tar: You must specify one of the `-Acdtrux' options
    Try `tar --help' for more information.
    tar: You must specify one of the `-Acdtrux' options
    Try `tar --help' for more information.
    tar: You must specify one of the `-Acdtrux' options
    Try `tar --help' for more information.
    tar: You must specify one of the `-Acdtrux' options
    Try `tar --help' for more information.
    tar: You must specify one of the `-Acdtrux' options
    Try `tar --help' for more information.
    tar: You must specify one of the `-Acdtrux' options
    Try `tar --help' for more information.
    tar: You must specify one of the `-Acdtrux' options
    Try `tar --help' for more information.
    tar: You must specify one of the `-Acdtrux' options
    Try `tar --help' for more information.
    tar: You must specify one of the `-Acdtrux' options
    Try `tar --help' for more information.
    tar: You must specify one of the `-Acdtrux' options
    Try `tar --help' for more information.
    tar: You must specify one of the `-Acdtrux' options
    Try `tar --help' for more information.
    tar: You must specify one of the `-Acdtrux' options
    Try `tar --help' for more information.
    pkgacct started.
    pkgacct version 4.1 - running with uid 0
    using time::hires for speedups
    Copying Reseller Config...Done
    Copying SSL Certificates, CSRS, and Keys...Done
    Copying Mail files....Done
    Copying frontpage files....Done
    Copying proftpd file....Done
    Copying www logs.............
    Since the last update (the one that also caused the problems with mod_security) I have been receiving this error during the nightly backups. If I was to remove this script, then force a cpanel update, would it automatically replace the script with one that works? I haven't changed the file in any way, so I can only assume that the one it grabbed from the update was messed up somewhere.
    Has anyone else experienced this error, and know of a quickie fix for it? I'm wary of messing with this file, and don't want to wreck things more than they are now.

  2. #2
    Member SubZero's Avatar
    Join Date
    Apr 2005
    Location
    Balmumcu, Istanbul, TR
    Posts
    100

    Default

    same here...
    tar: You must specify one of the `-Acdtrux' options
    Try `tar --help' for more information.
    tar: You must specify one of the `-Acdtrux' options
    Try `tar --help' for more information.
    tar: You must specify one of the `-Acdtrux' options
    Try `tar --help' for more information.
    tar: You must specify one of the `-Acdtrux' options
    Try `tar --help' for more information.
    tar: You must specify one of the `-Acdtrux' options
    Try `tar --help' for more information.
    tar: You must specify one of the `-Acdtrux' options
    Try `tar --help' for more information.
    tar: You must specify one of the `-Acdtrux' options
    Try `tar --help' for more information.
    tar: You must specify one of the `-Acdtrux' options
    Try `tar --help' for more information.
    tar: You must specify one of the `-Acdtrux' options
    Try `tar --help' for more information.
    tar: You must specify one of the `-Acdtrux' options
    Try `tar --help' for more information.
    tar: You must specify one of the `-Acdtrux' options
    Try `tar --help' for more information.
    tar: You must specify one of the `-Acdtrux' options
    Try `tar --help' for more information.
    tar: You must specify one of the `-Acdtrux' options
    Try `tar --help' for more information.
    I have fixed modsec error via changing its password in the phpmyadmin. you can cat the script tht is giving error and copy paste the new password
    WHM 10.8.0 cPanel 10.8.2-C110
    CentOS 3.7 i686 - WHM X v3.1.0
    (nightly auto-updated at 6:00 GMT)

  3. #3
    Member
    Join Date
    Jul 2003
    Posts
    275

    Default

    I fixed the mod_sec problem 15 minutes after it started... but the backup problem is ongoing.

  4. #4
    Member
    Join Date
    Jan 2005
    Posts
    1,880

    Default

    Quote Originally Posted by NightStorm
    I fixed the mod_sec problem 15 minutes after it started... but the backup problem is ongoing.
    Yep, I'm getting this too. Any ideas from anyone would be appreciated.

    This started on the 3rd of December after upgrading to 10.8.1-CURRENT_41 from 10.8.1-CURRENT_30-something. CentOS 3.6.

  5. #5
    Member
    Join Date
    Mar 2004
    Posts
    710

    Default

    I got it on Fedora 4 -so it is an error. They updated the cpbackup script on that day..
    Lloyd F Tennison

  6. #6
    Moderator cPanel Partner NOC Badge dgbaker's Avatar
    Join Date
    Sep 2002
    Location
    Toronto, Ontario Canada
    Posts
    2,773

    Default

    Edit /scripts/cpbackup and check around line 345, there is the tar command. The format for it was as follows;

    Code:
    cpusystem("tar","cfzp","$target/dirs/$rawdir.tar.gz","$dir");
    In the lastest one they are trying to use --exclude=path and it is not structured correctly.

    They have listed -

    Code:
    cpusystem('tar',"--exclude='*/proc'",'cfzp',"$target/dirs/$rawdir.tar.gz",$dir);
    When it should be
    Code:
    cpusystem('tar','cfzp',"$target/dirs/$rawdir.tar.gz","--exclude='*/proc'",$dir);
    They have the exclude in the wrong place. Note that they have also changed from double quotes (") to single quotes (').

    To test and see try both of these;

    tar --exclude=proc cfzp /test.tar.gz *

    tar cfzp /test.tar.gz --exclude=*/proc *

    The first one shows the error, the second one works.
    Last edited by dgbaker; 12-04-2005 at 08:25 AM.
    Regards,
    David
    Forum Moderator

  7. #7
    Moderator cPanel Partner NOC Badge dgbaker's Avatar
    Join Date
    Sep 2002
    Location
    Toronto, Ontario Canada
    Posts
    2,773

    Default

    Bug 3584 has been added to the database
    http://bugzilla.cpanel.net/show_bug.cgi?id=3584
    Regards,
    David
    Forum Moderator

  8. #8
    Member
    Join Date
    Apr 2003
    Posts
    21

    Default

    Line 344 has
    Code:
    cpusystem('rsync',$rsyncopts,"--exclude='*/proc'",'--delete',"$dir/","$target/dirs/$rawdir");
    Is that wrong as well?

  9. #9
    Member rpmws's Avatar
    Join Date
    Aug 2001
    Location
    back woods of NC, USA
    Posts
    1,858

    Default

    seems like almost a week now I am seeing these across all boxes as well
    Just keeping my "eye" on things....
    R. Paul Mathews
    RPMWS - diehard cPanel Nutcase

  10. #10
    Member
    Join Date
    Apr 2003
    Posts
    21

    Default

    Made dgbaker's change but the nightly update overwrote it with the bugged version so still got the same errors. I suppose I will have to wait until CPanel correct it themselves.

  11. #11
    Member SubZero's Avatar
    Join Date
    Apr 2005
    Location
    Balmumcu, Istanbul, TR
    Posts
    100

    Default

    Quote Originally Posted by dgbaker
    Bug 3584 has been added to the database
    http://bugzilla.cpanel.net/show_bug.cgi?id=3584
    I hate it when they leave bugs like this: unattended....
    WHM 10.8.0 cPanel 10.8.2-C110
    CentOS 3.7 i686 - WHM X v3.1.0
    (nightly auto-updated at 6:00 GMT)

  12. #12
    Member
    Join Date
    Apr 2003
    Location
    Lewisville, Tx
    Posts
    968

    Default

    Seems they have "fixed" quite a few things lately without notifying of the changes. This is about the 5th thing we have seen in the past 2 weeks that really messed up Cpanel functionality.
    Kris
    NCServ, LLC.
    WebHosting - Dedicated Servers - Colocation
    sales@ncerv.com

  13. #13
    Member
    Join Date
    Jul 2003
    Posts
    275

    Default

    So I'm curious... they apparently have not yet patched it, as I received the error again last night, instead of the standard email I used to receive prior to the update. Does this mean that my nightly backups are not infact being backed up?
    This is something I would like to know, so that I can use a secondary method of keeping a copy of the data on a second drive...

  14. #14
    Member
    Join Date
    Apr 2003
    Location
    Lewisville, Tx
    Posts
    968

    Default

    This is the latest log for Edge. Should hit Current pretty soon I hope.

    10.8.1 (build 55) - EDGE Tree Linux i686 Thu Dec 8 21:37:58 2005

    Resolved bugzilla id 336 - Updated smartcheck to use later versions of
    smartmontools if installed
    Resolved bugzilla id 3208 - Change system mail preferences
    Resolved bugzilla id 3380 - BoxTrapper not working for domains that begin with
    a digit
    Resolved bugzilla id 3399 - maildir conversion on moved accounts
    Resolved bugzilla id 3427 - Disk quota in cPanel not updating immediately
    Resolved bugzilla id 3435 - FreeBSD 6.0 using tgz file extensions instead of
    tbz
    Resolved bugzilla id 3464 - Exim Configuration Editor generates an invalid
    configuration if smtp_banner is set
    Resolved bugzilla id 3518 - cpanelsync without bzip2 leaves -cpanesync.bz2
    files
    Resolved bugzilla id 3532 - Update yum.conf to exclude Exim rpm upgrades
    Resolved bugzilla id 3534 - Creation of Addon Domain with upper and lowercase
    does not work
    Resolved bugzilla id 3584 - cpbackup tar error
    Resolved bugzilla id 3587 - Urchin log processesing
    Resolved issue where resellers were unable to install new SSL certificates.
    Resolved issue where demo accounts' ftp login was re-enabled if the shell was
    changed from demoshell.
    Kris
    NCServ, LLC.
    WebHosting - Dedicated Servers - Colocation
    sales@ncerv.com

Similar Threads & Tags
Similar threads

  1. cpbackup with FreeBSD and tar/gtar..
    By beddo in forum Data Protection
    Replies: 2
    Last Post: 05-12-2009, 09:47 AM
  2. cpbackup .tar instead of tar.gz
    By Raffi in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 12-08-2008, 07:33 AM
  3. cpbackup empty tar's?
    By apea2rh in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-18-2007, 03:35 PM
  4. Restoring from cpbackup.tar
    By meganet in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 03-31-2005, 08:55 AM
  5. cpbackup just has directories - not tar.gz files
    By rastoma in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 09-06-2003, 07:51 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube