Include account shadow files in the backup

Banu Andrei shared this idea 2 months ago
Replied

On cPanel servers (possibly others too), some files (like passwd and shadow) from /home/*/etc/* are missing from JB5 backup by design.

This generates a huge (albeit edge case) problem: if a customer restores the /home/*/etc folder without using "Merge", the shadow file will end up missing from the account, thus no email accounts will have passwords set. This will render the email account inactive / unusable even from Webmail and missing from cPanel -> Email Accounts. In this case probably the only solution is to restore the email account but this might be unfeasible in some cases (users with a lot of email accounts or email account with a lot of data).

Please update JB5 to include all files from the user homedir into the backup without exception.

Replies (1)

photo
1

Hello Banu Andrei,

Thank you for submitting your feature request. Just to clarify, there was an open case, JB-Base #2039, regarding homedir restores affecting non-homedir items such as the passwd, quota, and shadow files contained in the etc directory. With the upcoming update, v5.3.14, set to release in October 2024, this issue is resolved and those files are no longer removed when restoring an accounts homedir backup item.

We also understand the use case for restoring only the email accounts and have case JB-Base #1975 open to address this. For further insight, those files are generated when JB uses the cPanel API to create email accounts, and so they are not included in any backup item. Instead, they will be regenerated via the cPanel API when JetBackup is tasked to recreate email accounts.

Best Regards,

The JetApps Team

Leave a Comment
 
Attach a file