The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Pkgacct hook

Discussion in 'General Discussion' started by stormthefront, Jul 5, 2015.

  1. stormthefront

    stormthefront Member

    Joined:
    Apr 15, 2012
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello,

    On one of my servers I have the following homedir configuration:

    /home/username is a symlink to

    /homessd/username

    Because of that setup, pkgacct invoked from the clients cPanel accounts fails to create a full cpanel backup for such accounts whose homedir is symlinked.
    I tried to create a bash hook (I set it at pre and preFinalize) to parse the homedir as per the hooks guidelines within the cPanel's documentation, but this does not work. Any idea on how to get cPanel to generate full backups inside /homessd/username

    Thank you!

    Regards,
    K.
     
  2. stormthefront

    stormthefront Member

    Joined:
    Apr 15, 2012
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    So,

    tracing the process it seems that the backupadmin binary thinks the the backup file and the dest dir are on the same fs and send the system rename() call :

    321615 rename("/home/321615.BIN_ADMIN_CPANEL_BACKUP_PL__.vig7RT0BC27AaTNg.tmp/backup-7.6.2015_15-26-33_phpinfo.tar.gz" = -1 EXDEV (Invalid cross-device link)

    The problem is with backupadmin - but how to resolve it?

    Regards,
    K.
     
Loading...

Share This Page