OpenID
Log In | Register
Skip to main content

Messages

This section allows you to view all Messages made by this member. Note that you can only see Messages made in areas you currently have access to.

Messages - Pete

3
WHM Backup Solutions Script Support / Re: error_log in root directory
Hi,

The PHP notices can be ignored they do not affect the running of the script. (On a side note I will be resolving these error messages shortly).

If the backup files are created but not transferred then there is a problem with your cpanel server or your FTP/SCP server. Pleas enable backup emails when running the backup and examine the emails you receive per cpanel account for any transfer errors.

Alternatively you can run the backup manually from within cpanel by creating a full account backup on an account that doesn't backup correctly.

Please note to create and transfer a backup. The account being backed up must have enough space to temporarily store the backup file. This is a limitation by cpanel itself.
6
WHM Backup Solutions Script Support / Re: Script is not deleting older backups
Hi,

I'm really sorry for not getting back to you. I've recently had to minimise support to this script due to COVID-19 work issues and the arrival of my first child.

After spending a bit of time testing, it would appear on your setup, the reason for the issue is the execution time. The root cause of the issue relates to the ftp retention script checking if each file is actually a file or is actually a directory. It seems to be that for the first file this takes 1 second, for the second file it takes 2 seconds and for the third file it takes 3 seconds and so on. With the number of backups you have, this can cause the FTP_CHDIR command to take over 40 seconds in some cases causing the script to time out. This is a bug with what seems to be PHP and the FTP server.

It should be noted that this should not happen. I'm currently looking into modifying the ftp retention script to do this check an alternative way and therefore significantly reduce the time and stop the error occurring. I will hopefully have an answer over the next few days.

Once again, I apologise for the delay in my response to you. I am still supporting this script, however I won't be able to respond as quickly as I usually do and may now take a few weeks to resolve issues.
7
WHM Backup Solutions Script Support / Re: Can WHMbackup be used without reseller account?
Hi,

WHM Backup Solutions would be great for that. A reseller account is essentially root with just a few less privileges. So yes, instead of entering the reseller login details in the config file just enter your root details. I highly recommend using the API Token with restricted permissions however as shown on the FAQ page. Just to keep safety in mind :).
8
Change Log / V1.5
  • BUG FIX: Resolved issues using ftp_retention.php with a custom configuration file when run via CLI/Cron Job.
10
Change Log / V1.3 & V1.4
This change log is merged for versions 1.3 and 1.4.
Due to some issues affecting the curl timeout and the upgrade process when using command line/cron job, i've pushed these updates out with a matter of urgency.

Unfortunately due to a bug fixed in V1.4, the script isn't able to upgrade to the latest version automatically unless run in the web browser.
11
Change Log / V1.2
The final build of 2019! Resolving a few issues identified as a result of users who've got in contact.

  • BUG FIX: cPanel API CURL Timeout Added.
  • BUG FIX: WHM port value was being ignored.
  • COMMENT FIX: $config['whm_port'] comment referred to this as the cPanel login port value. This should be the port used for logging into WHM as per the variable name.

For a full list of commits/changes, see https://bitbucket.org/peterk1992/whm-backup-solutions/commits/
12
WHM Backup Solutions Script Support / Re: "Run Account Backup" Cron Timing
Hi JCWacky,

Nothing bad will happen. The documentation guide refers to 10 minutes, to just reduce/balance out any backups. However, reducing this to even every 2 minutes shouldn't create much of an issue as behind the scenes. Each cPanel server is configured to only let backups be created when the server load is below a certain value (Set by your webhost or root user). If the server load is above that value it will simply be added to a queue until the server load drops enough for it to start processing backups.
13
Feature Requests / SCP Retention Script
For a while now, WHM Backup Solutions Backup Script has included not only the backup script but also a FTP retention script which allows you to maintain a certain number of backups on an FTP server. However, no such script yet exists for SCP.

Therefore a SCP retention script should be developed.
14
General Discussion / Forum Software Move
After spending a bit of time setting up the forum using PHPBB, I decided there was too many issues/bugs and have therefore decided to move our support forum to ElkArte.

The only difference is that, if you have previously registered on the forum you will have to re-register.
15
WHM Backup Solutions Script Support / Re: No Backups Required
Hi MaxHosting,

Welcome to the forum, on the documentation guide it lists 2 cron jobs.

The first is
Code: [Select]
php -q /home/user/whmbackupsolutions/whmbackup.php generate
This only needs to be run once a day/week/month etc, only when you want an actual backup to run.
You can run that cron job if you have put the script in a publicly accessible space e.g. /public_html/ by going to http://yourwebsite.com/whmbackup.php?generate

The second is
Code: [Select]
php -q /home/user/whmbackupsolutions/whmbackup.php
This should be run every 5/10 minutes, when the first cron job is run it will backup an single account that's due it will then work through the list each time its run until all are complete. When no more accounts are due to be backed up, it will say "No Backups Required".
You can run that cron job if you have put the script in a publicly accessible space e.g. /public_html/ by going to http://yourwebsite.com/whmbackup.php

To resolve your error, you need to run the first cron job then run the second. This will then start the backups.
Id suggest you setup the cron jobs and then check the /logs/ folder, 30 minutes or an hour later. You should then have a log report appear.