• Resolved mdes

    (@mdes)


    Hi,

    Xcloner does not backup all of the files.

    Apparently, it stops with this message in the log file (I replaced my site name with xxx):
    [2018-06-22 01:06:14] php_system.INFO: E_WARNING: array ( ‘type’ => 2, ‘message’ => ‘closedir() expects parameter 1 to be resource, boolean given’, ‘file’ => ‘/home/xxx/public_html/wp-admin/includes/file.php’, ‘line’ => 168, ) [] []

    It backups only the first 4024 files (around 194 MB) on 9998 files (around 3.3 GB).

    Any suggestions?

    Thanks,
    Michel.

    —————
    Running version was 4.0.7. This night, I will try with the new one (v4.0.8).
    —————
    Furthermore, at the end of the log:
    [2018-06-22 07:01:36] xcloner_file_system.INFO: Cleaning the backup storage on matching rules [] []
    [2018-06-22 07:01:36] php_system.INFO: E_NOTICE: array ( ‘type’ => 8, ‘message’ => ‘A non well formed numeric value encountered’, ‘file’ => ‘/home/xxx/public_html/wp-content/plugins/xcloner-backup-and-restore/includes/class-xcloner-file-system.php’, ‘line’ => 693, ) [] []

Viewing 15 replies - 1 through 15 (of 15 total)
  • Hi Michel, have you checked the disk space available, do you have enough to make a full backup?

    Thread Starter mdes

    (@mdes)

    Hi Liuta,

    I have “no limit”. Currently I am using only 9.42 GB / ∞.
    To be sure, I just copied the file with another name without any problem.

    Any other idea?
    Best regards,
    Michel.

    In XCloner Config ->System tab, there is an option called “Force Temporary Path Within XCloner Storage”, try and enable that and see if it helps.

    Let me know if it still doesn’t work

    Thread Starter mdes

    (@mdes)

    Thanks for your quick reply 🙂

    Is there a way to run a schedule backup without waiting the scheduled time?

    You would need to modify it’s scheduled time so it runs sooner… you can’t trigger a future scheduled backup

    Thread Starter mdes

    (@mdes)

    This is something you should develop: modification of an existing backup (modify schedule date/time, modify files/tables to in-/exclude…)

    In any cases, thanks for your Xcloner (but only when it will be Ok for me 😉

    Thread Starter mdes

    (@mdes)

    Hi Liuta,

    It is better (more files are backuped), but there are still many files they are not.

    Michel.

    Thread Starter mdes

    (@mdes)

    Furthermore:

    (1) There are many folders that are backuped as files of 0 byte size.

    (2) There are many files in the backup base folder:
    “backup_xxx.fr-2018-06-23_01-14-sql-d5395.tar\01836308ef8274b8f40f576da14b95efa5b66d8e5c3bbcd40df782e6fe3a.php”
    but these files should in another folder:
    ftp://kfksucy@ftp.xxx.fr/public_html/wp-content/plugins/all-in-one-event-calendar/cache/twig/08/e4/4d5fc50332367b2d7e81902230ac0e7ea950ee003ec7a490752fc6534c00.php”

    But do you still get the initial error? The xcloner logger should have more details on when a file is excluded from the backup, unless there are errors.

    Thread Starter mdes

    (@mdes)

    Yes, I have the same errors. Here are the last lines of the log file:

    • [2018-06-23 01:18:22] xcloner_archive.INFO: Adding 28145 bytes of file wp-content/uploads/2017/12/2011-05-28-11-23-24-225×300.jpg to archive backup_kifekoisucy.fr-2018-06-23_01-14-sql-d5395.tar [] []
    • [2018-06-23 01:18:22] php_system.INFO: E_WARNING: array ( ‘type’ => 2, ‘message’ => ‘closedir() expects parameter 1 to be resource, boolean given’, ‘file’ => ‘/home/kfksucy/public_html/wp-admin/includes/file.php’, ‘line’ => 168, ) [] []
    • [2018-06-23 01:18:22] php_system.INFO: E_WARNING: array ( ‘type’ => 2, ‘message’ => ‘closedir() expects parameter 1 to be resource, boolean given’, ‘file’ => ‘/home/kfksucy/public_html/wp-admin/includes/file.php’, ‘line’ => 168, ) [] []
    • [2018-06-23 02:09:18] php_system.INFO: E_WARNING: array ( ‘type’ => 2, ‘message’ => ‘closedir() expects parameter 1 to be resource, boolean given’, ‘file’ => ‘/home/kfksucy/public_html/wp-admin/includes/file.php’, ‘line’ => 168, ) [] []
    • [2018-06-23 03:02:24] php_system.INFO: E_WARNING: array ( ‘type’ => 2, ‘message’ => ‘closedir() expects parameter 1 to be resource, boolean given’, ‘file’ => ‘/home/kfksucy/public_html/wp-admin/includes/file.php’, ‘line’ => 168, ) [] []
    • [2018-06-23 04:13:30] php_system.INFO: E_WARNING: array ( ‘type’ => 2, ‘message’ => ‘closedir() expects parameter 1 to be resource, boolean given’, ‘file’ => ‘/home/kfksucy/public_html/wp-admin/includes/file.php’, ‘line’ => 168, ) [] []
    • [2018-06-23 05:06:18] php_system.INFO: E_WARNING: array ( ‘type’ => 2, ‘message’ => ‘closedir() expects parameter 1 to be resource, boolean given’, ‘file’ => ‘/home/kfksucy/public_html/wp-admin/includes/file.php’, ‘line’ => 168, ) [] []
    • [2018-06-23 07:10:47] php_system.INFO: E_WARNING: array ( ‘type’ => 2, ‘message’ => ‘closedir() expects parameter 1 to be resource, boolean given’, ‘file’ => ‘/home/kfksucy/public_html/wp-admin/includes/file.php’, ‘line’ => 168, ) [] []
    • [2018-06-23 08:02:17] php_system.INFO: E_WARNING: array ( ‘type’ => 2, ‘message’ => ‘closedir() expects parameter 1 to be resource, boolean given’, ‘file’ => ‘/home/kfksucy/public_html/wp-admin/includes/file.php’, ‘line’ => 168, ) [] []
    • [2018-06-23 08:02:35] xcloner_file_system.INFO: Cleaning the backup storage on matching rules [] []
    • [2018-06-23 08:02:35] php_system.INFO: E_NOTICE: array ( ‘type’ => 8, ‘message’ => ‘A non well formed numeric value encountered’, ‘file’ => ‘/home/kfksucy/public_html/wp-content/plugins/xcloner-backup-and-restore/includes/class-xcloner-file-system.php’, ‘line’ => 693, ) [] []

    About the non-backuped files, there are
    [2018-06-23 01:13:36] xcloner_file_system.INFO: Adding wp-content/uploads/2017/12/2011-05-28-11-22-54.jpg to the filesystem list [“FILESYSTEM SCAN”,”INCLUDE”] []

    but no corresponding
    [2018-06-23 01:18:22] xcloner_archive.INFO: Adding 3089 bytes of file wp-content/uploads/2017/12/2011-05-28-11-22-54.jpg to archive backup_xxx.fr-2018-06-23_01-14-sql-d5395.tar [] []

    More details: In the log file,

    • There are 64505 lines with “to the file system list” (files to backup), and
    • 35989 lines of “to archive backup” (backuped files).

    Yesterday, the counts were: 20521 backuped files, against 63139 to backup.

    Hope this help you!

    Michel.

    Thread Starter mdes

    (@mdes)

    Furthermore, there are many folders “.xcloner-nnnnn” that contain only one file “xcloner-nnnnn.log” whose content is one line:
    [2018-06-23 23:05:53] php_system.INFO: E_WARNING: array ( 'type' => 2, 'message' => 'closedir() expects parameter 1 to be resource, boolean given', 'file' => '/home/xxx/public_html/wp-admin/includes/file.php', 'line' => 168, ) [] []

    These files seem to be created every hour+5′.

    • This reply was modified 4 years, 1 month ago by mdes.

    Feel free to contact me here, http://www.thinkovi.com/contact/ , i would be interested in debugging this further, so, if possible, send me your site access details.

    After debugging, i have found out that the scheduling process might have been interfering with the browser backup process, so i would suggest to:

    1. disable WP_CRON as explained here http://www.inmotionhosting.com/support/website/wordpress/disabling-the-wp-cronphp-in-wordpress and trigger the wp-cron.php through a server scheduler process

    2. run the browser backup process only after the scheduler process is finished, or at least make sure it’s not running

    Hope it helps.

    Thread Starter mdes

    (@mdes)

    Ok, thank you for this advice.

    I disabled WP_CRON, and I trigger the server CRON every hour. I will see for the next backup.

    But I still have an xcloner_main_….log file whis is growing every 10″ with lines like `[2018-06-25 15:45:42] php_system.INFO: E_WARNING: array ( ‘type’ => 2, ‘message’ => ‘defined() expects exactly 1 parameter, 2 given’, ‘file’ => ‘/home/xxx/public_html/wp-config.php’, ‘line’ => 41, ) [] []’

    Thread Starter mdes

    (@mdes)

    Please delete my last remarks starting above with “But I still”. It is an error from me.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Files not backuped’ is closed to new replies.