{"id":394233,"date":"2026-11-13T20:55:22","date_gmt":"2026-11-13T20:55:22","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/failsafe-backup\/"},"modified":"2026-11-14T03:02:11","modified_gmt":"2026-11-14T03:02:11","slug":"salvocofre","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/salvocofre\/","author":23594372,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"0.2.2","stable_tag":"0.2.2","tested":"7.1.4","requires":"6.2","requires_php":"8.0","requires_plugins":null,"header_name":"Salvocofre Backup","header_author":"Felipe Albino","header_description":"Creates a backup of the WordPress database and files as a single ZIP archive.","last_updated":"2026-11-14 03:02:11","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"https:\/\/profiles.wordpress.org\/feliperafaldini\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":143,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"0.2.1":{"tag":"0.2.1","author":"feliperafaldini","date":"2026-11-13 20:54:57","revision":3801143},"0.2.2":{"tag":"0.2.2","author":"feliperafaldini","date":"2026-11-14 03:02:11","revision":3801365}},"upgrade_notice":{"0.2.2":"<p>Security hardening \u2014 update recommended.<\/p>","0.2.1":"<p>This release renames the plugin to Salvocofre Backup. Deactivate and reactivate the plugin after updating so the new text domain loads.<\/p>","0.2.0":"<p>Timestamped backup sets, list\/download\/delete\/restore and scheduling. Old fixed-name files are left untouched. Daily backups are scheduled after updating; disable them in Settings &gt; Salvocofre Backup. Requires PHP 8.0.<\/p>"},"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3801143,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3801143,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3801143,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3801143,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.2.1","0.2.2"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3801143,"resolution":"1","location":"assets","locale":"","width":1280,"height":720},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3801143,"resolution":"2","location":"assets","locale":"","width":1280,"height":720},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3801143,"resolution":"3","location":"assets","locale":"","width":1280,"height":720},"screenshot-4.png":{"filename":"screenshot-4.png","revision":3801143,"resolution":"4","location":"assets","locale":"","width":1280,"height":720},"screenshot-5.png":{"filename":"screenshot-5.png","revision":3801143,"resolution":"5","location":"assets","locale":"","width":1280,"height":720}},"screenshots":{"1":"The <strong>Backups<\/strong> screen with the table of sets, the download and delete actions, and the total size on disk.","2":"The <strong>Salvocofre Restore<\/strong> screen under <strong>Tools<\/strong>, with the warning, the backup table and the typed confirmation field.","3":"The <strong>Salvocofre Backup<\/strong> settings screen with the schedule status, the frequency selector and the retention field.","4":"The <strong>Backups<\/strong> screen right after a run, with the success notice and the new set at the top of the table.","5":"The <strong>Backups<\/strong> screen after a failed run, with the notice naming the limit that stopped the backup."}},"plugin_section":[262246],"plugin_tags":[151,153,152,4062,7343],"plugin_category":[40,59],"plugin_contributors":[292646],"plugin_business_model":[],"class_list":["post-394233","plugin","type-plugin","status-publish","hentry","plugin_section-dashboard-widgets","plugin_tags-backup","plugin_tags-database","plugin_tags-restore","plugin_tags-schedule","plugin_tags-zip","plugin_category-calendar-and-events","plugin_category-utilities-and-tools","plugin_contributors-feliperafaldini","plugin_committers-feliperafaldini"],"banners":{"banner":"https:\/\/ps.w.org\/salvocofre\/assets\/banner-772x250.png?rev=3801143","banner_2x":"https:\/\/ps.w.org\/salvocofre\/assets\/banner-1544x500.png?rev=3801143","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/salvocofre\/assets\/icon-128x128.png?rev=3801143","icon_2x":"https:\/\/ps.w.org\/salvocofre\/assets\/icon-256x256.png?rev=3801143","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/salvocofre\/assets\/screenshot-1.png?rev=3801143","caption":"The <strong>Backups<\/strong> screen with the table of sets, the download and delete actions, and the total size on disk."},{"src":"https:\/\/ps.w.org\/salvocofre\/assets\/screenshot-2.png?rev=3801143","caption":"The <strong>Salvocofre Restore<\/strong> screen under <strong>Tools<\/strong>, with the warning, the backup table and the typed confirmation field."},{"src":"https:\/\/ps.w.org\/salvocofre\/assets\/screenshot-3.png?rev=3801143","caption":"The <strong>Salvocofre Backup<\/strong> settings screen with the schedule status, the frequency selector and the retention field."},{"src":"https:\/\/ps.w.org\/salvocofre\/assets\/screenshot-4.png?rev=3801143","caption":"The <strong>Backups<\/strong> screen right after a run, with the success notice and the new set at the top of the table."},{"src":"https:\/\/ps.w.org\/salvocofre\/assets\/screenshot-5.png?rev=3801143","caption":"The <strong>Backups<\/strong> screen after a failed run, with the notice naming the limit that stopped the backup."}],"raw_content":"<!--section=description-->\n<p>Salvocofre Backup creates a ZIP archive with the site files and a SQL dump of the database, keeps the previous backups under a retention limit, and can restore the database from any complete archive. It works on a single WordPress installation; multisite is not supported.<\/p>\n\n<p>Each backup is a set of two files in the backup directory (see below):<\/p>\n\n<ul>\n<li><code>salvocofre-YYYYMMDD-HHMMSS-&lt;random&gt;.zip<\/code> \u2014 the SQL dump plus every readable file in the WordPress installation.<\/li>\n<li><code>salvocofre-YYYYMMDD-HHMMSS-&lt;random&gt;.sql<\/code> \u2014 the same database dump on its own.<\/li>\n<\/ul>\n\n<p>Names use the site time zone followed by 16 random hexadecimal characters, so they cannot be guessed from the time of the backup. Sets created before 0.2.2 keep their original names and are still listed, restored and removed by retention. A new backup never overwrites an older one; old sets are removed only by the retention limit or by hand.<\/p>\n\n<p><strong>The database dump<\/strong><\/p>\n\n<ul>\n<li>Starts with the site URL, the UTC date, <code>SET SESSION sql_mode = ''<\/code> and <code>SET NAMES<\/code> with the database charset and collation.<\/li>\n<li>Disables foreign key checks and opens a consistent snapshot before reading the tables.<\/li>\n<li>Writes <code>DROP TABLE IF EXISTS<\/code> and <code>CREATE TABLE<\/code> for every table, followed by one <code>INSERT<\/code> per row.<\/li>\n<li>Ends with <code>COMMIT<\/code> and re-enables foreign key checks.<\/li>\n<li>Checks <code>$wpdb-&gt;last_error<\/code> after every query, so a missing table or a failed read stops the backup instead of producing a partial file.<\/li>\n<li>Writes binary or non-UTF-8 values as hexadecimal literals.<\/li>\n<li>Includes every table in the current database, including tables created by other plugins.<\/li>\n<li>Does not include views, triggers, stored procedures or events.<\/li>\n<\/ul>\n\n<p><strong>The ZIP archive<\/strong><\/p>\n\n<ul>\n<li>Contains the SQL dump at the archive root and the site files under their original relative paths.<\/li>\n<li>Excludes the backup directory itself, <code>wp-content\/cache<\/code> and <code>wp-content\/upgrade<\/code>.<\/li>\n<li>Includes <code>wp-config.php<\/code>, so treat the archive as sensitive data.<\/li>\n<li>If a file cannot be added, the run fails and the partial archive is removed.<\/li>\n<\/ul>\n\n<p><strong>Managing backups<\/strong><\/p>\n\n<p>The top-level <strong>Salvocofre<\/strong> menu opens the <strong>Backups<\/strong> screen. The table shows the date, the file names, the total size and the actions for every backup set:<\/p>\n\n<ul>\n<li><strong>Download (.zip)<\/strong> and <strong>Download (.sql)<\/strong> stream one file through <code>admin-post.php<\/code>; the link carries a nonce and the path is rebuilt from the requested backup name.<\/li>\n<li><strong>Delete<\/strong> removes both files of the set. It is a POST request with a nonce tied to that set, so a stale link cannot delete another backup.<\/li>\n<li>A set with only one file is marked <strong>Incomplete<\/strong> and is kept until it is deleted by hand. Retention never removes it.<\/li>\n<\/ul>\n\n<p>The dashboard widget shows the latest backup, the number of sets and the total size on disk, with a link to the full screen and a <strong>Backup now<\/strong> button. The <strong>Backups<\/strong> screen also has a <strong>Backup now<\/strong> button.<\/p>\n\n<p><strong>Restoring the database<\/strong><\/p>\n\n<p><strong>Tools &gt; Salvocofre Restore<\/strong> restores the database from the <code>.zip<\/code> archive of a backup set. The screen shows a restore form only for sets whose ZIP exists and is not empty.<\/p>\n\n<ol>\n<li>Type the exact backup name to confirm the operation.<\/li>\n<li>The plugin creates a full safety backup first. If that backup fails, the restore is aborted.<\/li>\n<li>The archive is extracted to a temporary directory outside the web root. Entries with absolute paths, <code>..<\/code> references, null bytes or symbolic links are rejected before any archive entry is written, and archives with more than 50,000 entries are refused by default.<\/li>\n<li>Only the SQL dump is executed. The site files in the archive are validated and then discarded; the files of the installation are not changed.<\/li>\n<li>The restore routine does not delete the backup it used, and the safety backup is kept too. Both count toward the retention limit. The object cache is flushed when the process finishes.<\/li>\n<\/ol>\n\n<p>A failing <code>SET<\/code> statement is logged and skipped, because restricted database users may not be allowed to change every session value. Any other failing statement stops the restore and shows the error, so a restore can leave the database partially restored. You may need to sign in again after the database changes.<\/p>\n\n<p>The restore screen cannot restore a <code>.sql<\/code> file on its own, and it does not restore site files. To recover files, extract the ZIP over the WordPress directory manually.<\/p>\n\n<p><strong>Automatic backups<\/strong><\/p>\n\n<p><strong>Settings &gt; Salvocofre Backup<\/strong> controls scheduled backups:<\/p>\n\n<ul>\n<li>The schedule is enabled by default with a daily frequency after activation.<\/li>\n<li>Frequencies: hourly, twice daily, daily and weekly.<\/li>\n<li>Changing the frequency replaces the existing event; it never creates a second event.<\/li>\n<li>The same screen shows the last scheduled run, its result and the next due time, and warns when the event is overdue, missing or when <code>DISABLE_WP_CRON<\/code> is set.<\/li>\n<li>A lock prevents two backups from running at the same time, whether they are scheduled or started by hand. A lock older than 15 minutes is treated as abandoned and can be taken over.<\/li>\n<\/ul>\n\n<p>WP-Cron only runs when the site receives traffic. A quiet site can therefore run an automatic backup late. To keep the schedule on time, disable WP-Cron and call <code>wp-cron.php<\/code> from a system cron job.<\/p>\n\n<p>The status e-mail is sent for manual backups started from the admin screens: a failure is reported whenever the administrator address is valid, and a success is reported only when the <code>salvocofre_email_on_success<\/code> option is enabled (there is no setting for it in the admin screens yet). The message goes to the site administrator address and can be redirected with the <code>salvocofre_status_email_recipient<\/code> filter. A failed scheduled run is recorded in the settings status and in the site log, but it does not send an e-mail.<\/p>\n\n<p><strong>Retention<\/strong><\/p>\n\n<p>The <strong>Backups to keep<\/strong> setting defaults to 5 and accepts 0 to 50. Zero keeps every backup. The limit is applied after every successful backup, manual or scheduled, and only complete sets count. Sets left incomplete by an interrupted run stay on disk until they are deleted.<\/p>\n\n<p><strong>Pre-flight checks<\/strong><\/p>\n\n<p>Before writing any file, the plugin estimates the database size from <code>information_schema<\/code> (cached for 10 minutes) and checks three limits:<\/p>\n\n<ul>\n<li>Memory: a fixed floor of 64 MB. The dump is streamed to disk in chunks, so the requirement does not grow with the database.<\/li>\n<li>Disk: about twice the database size plus 16 MB against the free space of the backup directory.<\/li>\n<li>Time: about five seconds plus one second per 2 MB against <code>max_execution_time<\/code>.<\/li>\n<\/ul>\n\n<p>A backup that would exceed a known limit is stopped with an explanatory error before the dump starts. When PHP does not expose a limit, that check is skipped.<\/p>\n\n<p><strong>The backup directory<\/strong><\/p>\n\n<p>By default the plugin creates <code>wp-content\/salvocofre-backups-&lt;random&gt;\/<\/code>, where <code>&lt;random&gt;<\/code> is 32 hexadecimal characters generated once and stored in the <code>salvocofre_backup_dir_name<\/code> option. The directory is created on activation, on update and on every admin request if it is missing. It receives an <code>.htaccess<\/code> file (Apache 2.2 and 2.4), a <code>web.config<\/code> file (IIS), and empty <code>index.php<\/code> and <code>index.html<\/code> files.<\/p>\n\n<p>Backups from 0.2.1 and earlier, in <code>wp-content\/salvocofre-backups\/<\/code>, are moved into the new directory on update. If a file cannot be moved it stays where it is, is still listed and usable, and a notice on the plugin screens names the files to move by hand.<\/p>\n\n<p>To keep backups outside the web root, define the directory in <code>wp-config.php<\/code> with an absolute path that the web server user can write to:<\/p>\n\n<pre><code>define( 'SALVOCOFRE_BACKUP_DIR', '\/home\/example\/salvocofre-backups' );\n<\/code><\/pre>\n\n<p><strong>Public access check<\/strong><\/p>\n\n<p>Once a day, when one of the plugin screens is opened, and after updates and settings changes, the plugin writes a small test file with random content into the backup directory, requests its public URL from your own site and deletes it. If the web server returns the file, every plugin screen shows a warning with the nginx rule for the actual directory and the <code>SALVOCOFRE_BACKUP_DIR<\/code> alternative. If the request fails, the settings screen says that public access could not be ruled out.<\/p>\n\n<p>Downloads do not rely on direct access to that directory: they are served by <code>admin-post.php<\/code> after the capability and nonce checks.<\/p>\n\n<p><strong>Who can run a backup<\/strong><\/p>\n\n<p>Users with the <code>manage_options<\/code> capability by default. The capability can be changed with the <code>salvocofre_backup_capability<\/code> filter.<\/p>\n\n<p><strong>Uninstall<\/strong><\/p>\n\n<p>Deactivation removes the scheduled event and any run lock; the backups are left untouched. Uninstall removes every plugin option and the run lock, so nothing is left in the database. The backup directory is kept unless the site owner has enabled the <code>salvocofre_delete_backups_on_uninstall<\/code> option; when enabled, the directory is removed as well.<\/p>\n\n<h3>Limitations<\/h3>\n\n<p>These limits are known and accepted for the current version:<\/p>\n\n<ul>\n<li><strong>Database size.<\/strong> Tested with a table of 150,000 rows: a 37.8 MB dump and a 42 MB archive in 8 seconds, with a peak of 42 MB of memory under a 128 MB limit. The dump is written to disk in chunks of 500 rows and the restore reads it back in 64 KB blocks, so memory stays flat. The remaining limit is time, not memory (see below).<\/li>\n<li><strong>Request time.<\/strong> Manual and scheduled backups run inside a request. A small site takes about 9 seconds; the 150,000-row test took 8 seconds to back up and 19 seconds to restore. Under Apache the default limit is 30 seconds, so a database several times larger than the test will hit the timeout. There is no background processing yet.<\/li>\n<li><strong>WP-Cron depends on traffic.<\/strong> Automatic backups only start when WordPress receives a request or when <code>wp-cron.php<\/code> is called by a system cron job. A quiet site can run a backup late.<\/li>\n<li><strong>Web server rules.<\/strong> Directory protection relies on <code>.htaccess<\/code> (Apache) and <code>web.config<\/code> (IIS). On nginx or another server that ignores both, you must add your own rule or move the directory outside the web root with <code>SALVOCOFRE_BACKUP_DIR<\/code>; the public access check warns when this is needed. The IIS rule has not been tested on an IIS server.<\/li>\n<li><strong>Multisite.<\/strong> Not supported. See the FAQ above.<\/li>\n<li><strong>Restore scope.<\/strong> Only the database is restored. The site files in the archive are not written to the installation. A restore that fails halfway can leave the database partially restored.<\/li>\n<li><strong>Restore input.<\/strong> Only backups with a non-empty <code>.zip<\/code> archive can be restored from the screen. A <code>.sql<\/code> file on its own cannot be restored there, and extraction needs a temporary directory outside the web root.<\/li>\n<li><strong>ZipArchive.<\/strong> The PHP <code>zip<\/code> extension is required. Without it, backups and restores fail with an error.<\/li>\n<li><strong>Database objects.<\/strong> Views, triggers, stored procedures and events are not included in the dump.<\/li>\n<li><strong>Retention and incomplete sets.<\/strong> Retention only deletes complete sets; a set with one missing file stays until it is deleted by hand.<\/li>\n<li><strong>Concurrent runs.<\/strong> A second backup started while one is running is refused with a warning instead of running in parallel. The refusal is not queued: you have to try again after the first run finishes.<\/li>\n<li><strong>Sensitive archive.<\/strong> The ZIP contains <code>wp-config.php<\/code> and the database dump, including password hashes and personal data. Keep it private.<\/li>\n<\/ul>\n\n<h3>Roadmap<\/h3>\n\n<p>Multisite support, restoring site files, background processing for large sites and dumping database objects such as views and triggers are not part of version 0.2.2. No release date is promised.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the <code>salvocofre<\/code> directory to <code>\/wp-content\/plugins\/<\/code>, or install <code>salvocofre-&lt;version&gt;.zip<\/code> through <strong>Plugins &gt; Add New &gt; Upload Plugin<\/strong>. The <code>salvocofre.zip<\/code> archive, with the plugin files at its root, is meant for SVN trunk and is not the file the upload screen expects.<\/li>\n<li>Activate the plugin on the <strong>Plugins<\/strong> screen. Activation creates and protects the backup directory and schedules the first automatic backup.<\/li>\n<li>Open the <strong>Dashboard<\/strong> or the <strong>Salvocofre<\/strong> menu to create a backup. The <strong>Backups<\/strong> screen lists, downloads and deletes backup sets.<\/li>\n<li>Open <strong>Settings &gt; Salvocofre Backup<\/strong> to enable or disable automatic backups, choose the frequency and set the retention limit.<\/li>\n<li>Use <strong>Tools &gt; Salvocofre Restore<\/strong> to restore the database from a complete <code>.zip<\/code> backup.<\/li>\n<\/ol>\n\n<p>The web server user must be able to write to <code>wp-content\/<\/code>. For backups, the database user must be allowed to run <code>SHOW TABLES<\/code>, <code>SHOW CREATE TABLE<\/code>, <code>SELECT<\/code> and to read <code>information_schema<\/code>. For a restore, it also needs permission to run <code>DROP TABLE<\/code>, <code>CREATE TABLE<\/code> and <code>INSERT<\/code>, because the dump recreates the tables it contains.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt id=\"where%20are%20the%20backup%20files%20stored%3F\"><h3>Where are the backup files stored?<\/h3><\/dt>\n<dd><p>In <code>wp-content\/salvocofre-backups-&lt;random&gt;\/<\/code> by default; <strong>Settings &gt; Salvocofre Backup<\/strong> shows the full path. The directory is created by the plugin and protected with <code>.htaccess<\/code> (Apache) and <code>web.config<\/code> (IIS). Define <code>SALVOCOFRE_BACKUP_DIR<\/code> in <code>wp-config.php<\/code> to use another absolute path, preferably outside the web root.<\/p><\/dd>\n<dt id=\"does%20the%20plugin%20send%20any%20data%20outside%20my%20site%3F\"><h3>Does the plugin send any data outside my site?<\/h3><\/dt>\n<dd><p>No. It sends no telemetry and does not contact WordPress.org or any other service. The only HTTP request it makes is the public access check, sent from your site to a test file in its own backup directory. The only outgoing message is the status e-mail, delivered through your own site's mail configuration to the administrator address. Backups, settings and logs stay on your server.<\/p><\/dd>\n<dt id=\"how%20many%20backups%20are%20kept%3F\"><h3>How many backups are kept?<\/h3><\/dt>\n<dd><p>Five by default. Change <strong>Backups to keep<\/strong> under <strong>Settings &gt; Salvocofre Backup<\/strong>: 0 keeps every backup and the maximum is 50. The limit is applied after each successful backup.<\/p><\/dd>\n<dt id=\"are%20old%20backups%20overwritten%3F\"><h3>Are old backups overwritten?<\/h3><\/dt>\n<dd><p>No. Every run creates a new timestamped set. Sets beyond the retention limit are deleted after a successful backup.<\/p><\/dd>\n<dt id=\"can%20visitors%20download%20the%20backup%3F\"><h3>Can visitors download the backup?<\/h3><\/dt>\n<dd><p>On Apache the <code>.htaccess<\/code> file denies all requests to the directory, and on IIS <code>web.config<\/code> does the same. On nginx both are ignored: add a server rule such as <code>location ~* \/wp-content\/salvocofre-backups { deny all; }<\/code> (the warning on the plugin screens shows the rule for the actual directory), or define <code>SALVOCOFRE_BACKUP_DIR<\/code> in <code>wp-config.php<\/code> to a directory outside the web root. Directory and file names contain random parts and are never listed by the server, and the plugin checks once a day whether the directory is reachable from the web. The admin download links require a logged-in user with the backup capability and a valid nonce.<\/p><\/dd>\n<dt id=\"does%20the%20plugin%20work%20on%20multisite%3F\"><h3>Does the plugin work on multisite?<\/h3><\/dt>\n<dd><p>No. It has only been tested on a single site. On a multisite network it dumps every table in the network database and every file in the installation, without any per-site separation.<\/p><\/dd>\n<dt id=\"does%20it%20restore%20my%20site%3F\"><h3>Does it restore my site?<\/h3><\/dt>\n<dd><p>It restores the database from a <code>.zip<\/code> backup. Site files are not restored: the archive is validated, its dump is executed and the extracted files are discarded. To recover files, extract the ZIP over the WordPress directory with the site offline.<\/p><\/dd>\n<dt id=\"does%20restoring%20delete%20the%20backup%3F\"><h3>Does restoring delete the backup?<\/h3><\/dt>\n<dd><p>No. The restore routine does not delete the backup, and the safety backup created before the restore is kept as well. Both count toward the retention limit.<\/p><\/dd>\n<dt id=\"what%20happens%20if%20a%20restore%20fails%3F\"><h3>What happens if a restore fails?<\/h3><\/dt>\n<dd><p>A failing <code>SET<\/code> statement is logged and skipped. Any other failing statement stops the restore and the screen shows the error. Because the dump recreates tables one by one, the database can be left partially restored. Use the safety backup to try again.<\/p><\/dd>\n<dt id=\"why%20did%20the%20backup%20fail%3F\"><h3>Why did the backup fail?<\/h3><\/dt>\n<dd><p>The usual causes are a missing <code>ZipArchive<\/code> extension, a database error, a full disk, or a PHP memory or time limit. The pre-flight checks stop the run before writing when they can predict the problem. The error is written to <code>wp-content\/debug.log<\/code> when <code>WP_DEBUG<\/code> and <code>WP_DEBUG_LOG<\/code> are enabled. A manual run also sends a failure e-mail to the administrator address.<\/p><\/dd>\n<dt id=\"why%20did%20the%20scheduled%20backup%20not%20run%3F\"><h3>Why did the scheduled backup not run?<\/h3><\/dt>\n<dd><p>WP-Cron only runs when the site receives a request. A quiet site can be late. Check the next due time under <strong>Settings &gt; Salvocofre Backup<\/strong>; if <code>DISABLE_WP_CRON<\/code> is set, call <code>wp-cron.php<\/code> from a system cron job.<\/p><\/dd>\n<dt id=\"does%20the%20archive%20include%20uploads%20and%20other%20plugins%3F\"><h3>Does the archive include uploads and other plugins?<\/h3><\/dt>\n<dd><p>Yes. Every readable file under the WordPress installation is added, except the backup directory, <code>wp-content\/cache<\/code> and <code>wp-content\/upgrade<\/code>.<\/p><\/dd>\n<dt id=\"are%20backups%20from%20version%200.1.0%20listed%3F\"><h3>Are backups from version 0.1.0 listed?<\/h3><\/dt>\n<dd><p>No. Version 0.1.0 used the fixed names <code>salvocofre.sql<\/code> and <code>salvocofre.zip<\/code>. Those files are not matched by the timestamped names, so they are neither listed nor removed by retention. Download or delete them manually before upgrading if you need them.<\/p><\/dd>\n<dt id=\"can%20i%20change%20who%20is%20allowed%20to%20run%20backups%3F\"><h3>Can I change who is allowed to run backups?<\/h3><\/dt>\n<dd><p>Yes. Use the <code>salvocofre_backup_capability<\/code> filter and return another capability, for example <code>manage_network_options<\/code> or a custom capability.<\/p><\/dd>\n<dt id=\"does%20uninstalling%20delete%20my%20backups%3F\"><h3>Does uninstalling delete my backups?<\/h3><\/dt>\n<dd><p>By default, no. Uninstall removes every plugin option and keeps the backup files. Backups are deleted only when the <code>salvocofre_delete_backups_on_uninstall<\/code> option is enabled before uninstalling. There is no setting for this option in the admin screens yet.<\/p><\/dd>\n<dt id=\"can%20i%20extend%20the%20plugin%3F\"><h3>Can I extend the plugin?<\/h3><\/dt>\n<dd><p>Yes. The plugin exposes actions and filters so another plugin can react to a backup or change its behaviour without touching the code.<\/p>\n\n<p>Actions: <code>salvocofre_backup_started<\/code>, <code>salvocofre_backup_completed<\/code> (receives the new set), <code>salvocofre_backup_failed<\/code> (receives the <code>WP_Error<\/code>), <code>salvocofre_backup_deleted<\/code>, <code>salvocofre_retention_deleted<\/code> and <code>salvocofre_restore_completed<\/code>.<\/p>\n\n<p>Filters: <code>salvocofre_backup_dir<\/code>, <code>salvocofre_backup_capability<\/code>, <code>salvocofre_backup_excluded_paths<\/code>, <code>salvocofre_dump_tables<\/code>, <code>salvocofre_dump_chunk_size<\/code>, <code>salvocofre_dump_insert_batch<\/code>, <code>salvocofre_required_memory_bytes<\/code>, <code>salvocofre_cron_enabled<\/code>, <code>salvocofre_cron_frequencies<\/code>, <code>salvocofre_cron_lock_timeout<\/code>, <code>salvocofre_restore_read_chunk<\/code>, <code>salvocofre_restore_max_entries<\/code> and <code>salvocofre_status_email_recipient<\/code>.<\/p>\n\n<p>Every hook is documented in the source, next to where it fires.<\/p><\/dd>\n<dt id=\"is%20the%20archive%20sensitive%3F\"><h3>Is the archive sensitive?<\/h3><\/dt>\n<dd><p>Yes. The ZIP contains <code>wp-config.php<\/code> and the database dump, including password hashes and personal data. Keep it private.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.2.2<\/h4>\n\n<ul>\n<li>Security hardening: new backup names end with 16 random hexadecimal characters, and the default backup directory is <code>wp-content\/salvocofre-backups-&lt;random&gt;\/<\/code>. Backups from earlier versions are moved there on update and remain listed if a move fails.<\/li>\n<li>Added <code>web.config<\/code> (IIS) and <code>index.html<\/code> to the backup directory, next to <code>.htaccess<\/code> and <code>index.php<\/code>.<\/li>\n<li>Added a daily public access check of the backup directory, with a warning that shows the nginx rule for the actual directory.<\/li>\n<li>Backup names from requests are validated with a stricter pattern.<\/li>\n<li><code>SALVOCOFRE_BACKUP_DIR<\/code> is now documented as the way to keep backups outside the web root.<\/li>\n<\/ul>\n\n<h4>0.2.1<\/h4>\n\n<ul>\n<li>Renamed the plugin to Salvocofre Backup; the text domain is now <code>salvocofre<\/code>.<\/li>\n<li>No functional changes.<\/li>\n<\/ul>\n\n<h4>0.2.0<\/h4>\n\n<ul>\n<li>Timestamped backup sets (<code>salvocofre-YYYYMMDD-HHMMSS<\/code>) replace the fixed file names of 0.1.0; older backups are no longer overwritten.<\/li>\n<li>New top-level <strong>Salvocofre<\/strong> screen that lists date, files and size, downloads the <code>.zip<\/code> or <code>.sql<\/code> file and deletes both files of a set.<\/li>\n<li>Download through <code>admin-post.php<\/code> with a nonce and a path rebuilt from the validated backup name.<\/li>\n<li>Delete through a POST request with a nonce tied to the backup set.<\/li>\n<li>Dashboard widget with the latest backup, the number of sets and the total size on disk.<\/li>\n<li>Retention limit for complete sets, default 5 (0 keeps every backup, maximum 50).<\/li>\n<li>Atomic SQL write: the dump is written to a <code>.part<\/code> file and renamed into place; a failed archive is removed.<\/li>\n<li>Database restore under <strong>Tools &gt; Salvocofre Restore<\/strong>, with typed confirmation, a full safety backup before the restore, archive entry validation and a notice that site files are not changed.<\/li>\n<li>Scheduled backups (hourly, twice daily, daily and weekly) with a run lock, stale-lock takeover, and last-run and last-result status.<\/li>\n<li>Settings screen for automatic backups, frequency and retention.<\/li>\n<li>Pre-flight checks for memory, disk space and a time estimate (about 5 seconds plus 1 second per 8 MB of database and files) before the dump starts.<\/li>\n<li>Status e-mail for manual runs: failures are reported when the administrator address is valid, and successful runs are reported only with <code>salvocofre_email_on_success<\/code>.<\/li>\n<li>Requires PHP 8.0, matching the plugin header.<\/li>\n<\/ul>\n\n<h4>0.1.0<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<li>Dashboard widget with a <strong>Backup now<\/strong> button, protected by a nonce and a capability check.<\/li>\n<li>SQL dump with consistent snapshot, <code>DROP TABLE IF EXISTS<\/code>, <code>CREATE TABLE<\/code> and <code>INSERT<\/code> statements.<\/li>\n<li>ZIP archive with the SQL dump and all site files, excluding the backup directory, cache and upgrade directories.<\/li>\n<li>Backup directory created on activation and protected with <code>.htaccess<\/code> and <code>index.php<\/code>.<\/li>\n<li>Admin notice with the size of the dump and of the archive, plus optional debug logging.<\/li>\n<li>Clean uninstall: the retention setting is removed; backup files are kept unless explicitly opted in to deletion.<\/li>\n<\/ul>","raw_excerpt":"Creates timestamped ZIP backups of the database and site files, restores the database and can run on a schedule.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/394233","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=394233"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/feliperafaldini"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=394233"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=394233"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=394233"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=394233"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=394233"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=394233"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}