Hello.
cPanel v86.0.13.
When executing 'Restore a Home Directory Backup' by a user, if there are files in the archive with a path length longer than 103 (or 108) characters, then we see an error:
In the file “12345”, the path of this file and the characters “^ @” appear on the first line, for example: /public_html/catalog/controller/checkout/1234567890/1111111111111111/12345678901234567890aaaaaaa/1234567890.php^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@, and the "@LongLink" file is created in the /home/username directory (modify 1970-01-01 03: 00: 00.000000000 +0300, access rights 000), with the path of one of these files inside.
Manual unpacking of archives backup file occurs without any errors.
What is this strange behavior and how to fix it?
Steps for reproduce:
- create file(s) in homedir/public_html with long path (total length more than 104 symbols);
- create backup file (Download a Home Directory Backup) in cPanel Backup;
- Restore a Home Directory Backup.

cPanel v86.0.13.
When executing 'Restore a Home Directory Backup' by a user, if there are files in the archive with a path length longer than 103 (or 108) characters, then we see an error:
- (XID cthts2) The system failed to open the file “/home/username /./@LongLink” for writing because of an error: Permission denied
- (XID k4jy28) The system failed to open the file “/home/username /./@LongLink” for writing because of an error: Permission denied
- ...
In the file “12345”, the path of this file and the characters “^ @” appear on the first line, for example: /public_html/catalog/controller/checkout/1234567890/1111111111111111/12345678901234567890aaaaaaa/1234567890.php^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@, and the "@LongLink" file is created in the /home/username directory (modify 1970-01-01 03: 00: 00.000000000 +0300, access rights 000), with the path of one of these files inside.
Manual unpacking of archives backup file occurs without any errors.
What is this strange behavior and how to fix it?
Steps for reproduce:
- create file(s) in homedir/public_html with long path (total length more than 104 symbols);
- create backup file (Download a Home Directory Backup) in cPanel Backup;
- Restore a Home Directory Backup.
