AndyHenderson
Forum Replies Created
-
Given that the root directory contains several key files for any site including, for us: .htaccess robots.txt wp-config.php wp-settings – I think it would be valuable to be able to backup the root directory. A more generic feature might be to backup a given folder without recursing to subfolders.
Andy
Thanks for getting back.
I don’t think that will work because I have, for example, some php files in the root folder. Adding the root folder to the ‘Include in backup’ section and extension ‘php’ will find all the php files in the system. Or did I get that wrong?
The only editing needed is to remove the escaping characters inserted by the MySQL/MariaDB dump that BackWPUp uses. If you have any coding skills it’s not hard to do programmatically. I think you could also do it with an Excel macro. There are online de-serialisers that you can use to test what you produce is valid.
An alternative would be to mount a v4 backup to a server somewhere and use something like phpMyAdmin to extract the unescaped field and copy it to the live database.
Painful for a lot of databases, but better than trying to reinstate each backup manually via the V4 UI.
Once you are in back in v4, you can continue to edit jobs like you always did.
The job data is held in the WordPress Options table under key ‘backwpup_jobs’.
I used a v4 backup to extract the old value and reapplied it to the database after having removed the escape characters.
Forum: Plugins
In reply to: [BackWPup – WordPress Backup & Restore Plugin] How to downgrade?If you used a single job to backup both files and database, you might find that the v5 install has unchecked the database option in your job even after you go back to 4.7. Worth a check.
Andy
I’m afraid I was wrong about the 5.03 update. It hasn’t fixed either problem.
Our PHP version is 8.1.31 and WordPress is 6.7.1.
The previous version worked fine under that configuration.
Andy
Not a PHP version issue. The above problems were fixed by 5.03. Nothing else changed at my end. 5.03 even implemented the fix I suggested for class-wp-api.php.
Andy
Thank you for getting back, but that’s not it. The database dump file was definitely missing from the backup zip file. Apart from not being visible in the zip list, the size of the backup was reduced by exactly the size of the database dump as recorded for previous backups (I installed v5 first on a very slow-moving web site). Also, the ‘Database backup’ option was unticked in the job details. Adding DBDUMP to the type array caused the database dump to be included and the backup size went back to normal.
You don’t mention the ‘Start job’ option which was also changed. As it happens, it was just as well that it did, otherwise I might not have realised that I was no longer backing up my database.
The error in class-wp-api.php is a missing:
$unique_backups = array();before line 603. I guess it happens only if it can’t see any existing backups.
Even more bizarre, I found out what text is being echoed at line 73 in backwpup/inc/Utils/BackWPupHelpers.php:
<div class="flex items-center gap-2 p-4 rounded bg-alert-light text-alert">
<br/>
<div class="shrink-0">
<br/>
<svg width="32" height="32" viewBox="0 0 30 32" fill="none" xmlns="http://www.w3.org/2000/svg">
<br/>
<path d="M24.8438 7.9375C25.6875 8.3125 26.25 9.10938 26.25 10C26.25 22 17.3906 28 14.9531 28C12.6094 28 3.75 22.0938 3.75 10C3.75 9.10938 4.26562 8.3125 5.10938 7.9375L14.1094 4.1875C14.3438 4.09375 14.7188 4 15 4C15.2344 4 15.6094 4.09375 15.8438 4.1875L24.8438 7.9375ZM14.9531 25.75C18.0938 24.4844 24 19.5156 24 10L15 6.29688C14.9531 6.29688 14.9531 6.29688 14.9062 6.29688L6 10.0469C6 18.25 10.6406 23.9688 14.9531 25.75ZM13.875 11.125C13.875 10.5156 14.3438 10 15 10C15.6094 10 16.125 10.5156 16.125 11.125V16.375C16.125 17.0313 15.6094 17.5 15 17.5C14.3438 17.5 13.875 17.0313 13.875 16.375V11.125ZM15 19C15.7969 19 16.5 19.7031 16.5 20.5C16.5 21.3438 15.7969 22 15 22C14.1562 22 13.5 21.3438 13.5 20.5C13.5 19.7031 14.1562 19 15 19Z" fill="currentColor" />
<br/>
</svg> </div>
<br/>
<div class="flex flex-col gap-1">
<br/>
<p class="text-xs font-medium">
<br/>
Not authenticated! </p>
<br/>
</div>
<br/>
</div>
<br/>Apparently, it’s telling me I’m not authenticated to something even though I’m a site admin.
FWIW I fixed the job definition by directly altering option ‘backwpup_jobs’ in the options table. I added “DBDUMP” to the ‘type’ array and changed activetype from “” to “link”.
For some reason, although I specified the full backup in my link using jobid=1, it ran both my jobs (I have a database only job for occasional use).
Andy
Forum: Plugins
In reply to: [Akismet Anti-spam: Spam Protection] Akismet server offline?Just to say it was your own software that was reporting the issue. It does seem to be fixed now, though.
Andy
Forum: Plugins
In reply to: [Akismet Anti-spam: Spam Protection] Akismet server offline?I get an ‘Unable to connect’ message on the Akismet settings page for all my sites that use it.
Andy
Forum: Plugins
In reply to: [XML Sitemap Generator for Google] Undefined array key 1Yes – I should have said – 4.1.19. I think the message was caused by that version.
Andy
Unfortunately neither work-around fixed the problem.
For the time being I’ve added some code before the offending section to replace “event-” with “event<>” and, after the offending section to replace “event<>” with “event-“. But that’s obviously not a generic solution.