• Resolved eWallz

    (@archonic08)


    Hi, it would be great if you can add another basic & important feature for cpanel users which is running the full account backup function. Generally most cpanel user can generate full acc backup using the native cpanel backup function, but it can only be done manually once logged into the cpanel.
    With your plugin + the UAPI, the full backup process can be automated & put on schedule (via wpcron).
    Some basic option for the backup function.
    1. Run backup now button (for manual backup)
    2. Schedule run backup
    3. List all available backup copies on hosting for user to download to pc. As well as delete backup copies which no longer needed.
    4. Display simple indicator of total disk usage for backup.

    Important benefits user will get if you can add this feature:
    1. Automated the full acc backup including email, web, db etc. This can only be done with cpanel. No other backup plugin can backup emails.
    2. Backup created is fully compatible for cpanel-to-cpanel migration. All in one acc backup.

    Thanks for consideration.

Viewing 11 replies - 16 through 26 (of 26 total)
  • Plugin Author Knut Sparhell

    (@knutsp)

    Logic was wrong, should only test shell_exec if exists and callable, and not constant. Pleasy try again. Very helpful. Thanks.

    Well, on page load of Accoutnt Backups page the created file(s) are moved to wp-contents/cpanel when assumed finished (no shadow temp file present) and at least one minute old. Files are only deleted from this destination when requested.

    Thread Starter eWallz

    (@archonic08)

    Hi, it can be activated fine now. Tested the backup function.
    1. Cpanel backup trigger fine on button click.
    2. After like 5 minutes, i refresh the page. Got this error: https://snipboard.io/gT4NM5.jpg
    3. Check in cpanel filemanager. Backup in /cpanel folder is 0 in size with weird last mod date. check this https://snipboard.io/ohalEd.jpg. Reload many times after next 5 minutes, still the same..

    Plugin Author Knut Sparhell

    (@knutsp)

    It seems from the first error that there is no backup file in home. Was it there before page refresh? Is it readable, see permissins?

    Then try creating a small text file in home, rename to the same name as a backup file. The refresh plugin page. Does the file and content get moved?

    cPanel File Manager should let you see the file permissions. Most file operation problems are persmissions related. Try change to 644.

    Extra: What if you
    echo self::result( 'Backup', 'list_backups', [], true );
    from inside the backups() method in UAPI?
    This returns nothing here, but should have.

    Thread Starter eWallz

    (@archonic08)

    Hi, tested as per your instructions.
    1. Once clicked Create Backup & Before refreshing the page. The full completed backup file is created & available in home dir. https://snipboard.io/P3v1El.jpg. Permission 600.

    2. Then refreshed once, no file on the list. In home dir file is gone. In cpanel folder, backup file is there, same full size, but permission 1204 https://snipboard.io/acU49D.jpg.

    3. Then refreshed 2nd time, errors https://snipboard.io/gT4NM5.jpg shown on backup page. List empty. In the cpanel folder, the file size become 0 with last mod 1970 perm 644 same as https://snipboard.io/ohalEd.jpg

    4. Deleted the 0 size file in cpanel folder. Then refresh the backup page > error in (3) persist & the exact 0 size backup file in (3) recreated.

    5. Leaving (4) as it is. I click to create a 2nd backup. Backup file is completed in home dir https://snipboard.io/TkIAxt.jpg.

    6. Refresh once. Same thing happened as (2). https://snipboard.io/LWl9XN.jpg

    and the process repeating…

    Plugin Author Knut Sparhell

    (@knutsp)

    I think I found it, a caching and caching invalidation, problem showing wrong number of files, and copying a non-existent file, resulting in 0 bytes at destination.

    Now shows backup file in home while processing.

    Thank you for testing and debugging.

    Thread Starter eWallz

    (@archonic08)

    Hi, backup worked fine on 4.1.4
    But on a fresh wp install without API constant/define, the shell_exec error came back. Last time, a nice message notice appear asking to enable shell_exec or put constant..just this small issue.

    Plugin Author Knut Sparhell

    (@knutsp)

    Oh. That was a regression, fixed once again. Sorry for this trouble.

    Thread Starter eWallz

    (@archonic08)

    fixed on 4.2 but on 4.2.2 return blank screen on admin side when constant enabled…

    • This reply was modified 2 years, 1 month ago by eWallz.
    Plugin Author Knut Sparhell

    (@knutsp)

    This bug was re-fixed on 4.1.5. Could you please try that first (from Advanced tab here, other versions), so I we can see if new faetures causes this or not. Any error message?

    Difference between 4.2 and 4.2.3 are very small, minor things in Site Health only.

    Plugin Author Knut Sparhell

    (@knutsp)

    4.3 removes a check that might influence. I very much like to fix any issue.

    Plugin Author Knut Sparhell

    (@knutsp)

    I’ve finally found the root cause of the blank admin screen and eliminated that, I think. Pleasy try latest.

Viewing 11 replies - 16 through 26 (of 26 total)
  • The topic ‘Feature Request: Cpanel Full Account Backup’ is closed to new replies.