stormthefront

Member
Apr 15, 2012
18
1
53
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.
 

stormthefront

Member
Apr 15, 2012
18
1
53
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.