AlmaLinux release 8.8 (Sapphire Caracal)
Current Version: 2.3
Build: 4
Current Commit: d65b6b5bcd4e89ce1a0eeb74131f98093e85bb3a
Latest Version: 2.3
Latest Build: 4
Latest Commit: d65b6b5bcd4e89ce1a0eeb74131f98093e85bb3a
My typical stack is CloudLinux/cPanel/LSWS Enterprise on an EC2 instance on AWS. I use cPanel’s build in backup functionality to do nightly backups to AWS S3. This is a private server for a client, so I am deviating a little with a VPS on VULTR running on AlmaLinux. The CyperPanel version is licensed as LSWS Enterprise bundled with CyberPanel.
Because CyberPanel does not appear to have this functionality built in, I am writing a script to do it. The basic logic of the script being use the CyberPanel CLI createBackup function to create the account backups, then use AWS CLI v2 to sync the /home/user/backup folders to an S3 bucket. The script would cleanup local backups more than 5 days old, and a S3 bucket policy would cleanup remote backups after 90 days.
The first step was planning, and for step two I tested by running this command: cyberpanel createBackup --domainName bamtrail.com at which point everything appeared to run correctly. It didn’t throw any errors, it informed me of the log location it wrote to, and I confirmed the existence of /home/bamtrail.com/backup/backup-bamtrail.com-09.15.2023_21-40-07.tar.gz
However, since I used the CLI call to native CyberPanel tool, I expected to be able to find this backup somewhere in the web GUI for easy restoration, and it doesn’t appear to be there. If I am not going to be able to restore backups from the GUI easily, there is no real reason to maintain the last 5 locally.
Am I misunderstanding what cyberpanel createBackup is suppose to do, or is something wrong here? Thank you.