We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32982
    • 674 Posts
    This is an auto-generated support/comment thread for AutoBackupIncremental.

    Use this forum to post any comments about this addition or any questions you have regarding its use.

    Brief Description:
    autobakup the site if this day no backups and a user is logged in manager or in specific webgroup in frontend
      Jabiertxof (formerly XYZVISUAL)
      My bussines: http://marker.es
      • 7455
      • 2,204 Posts
      Is it posible to add this ftp function to upload the backup to a remote ftp server? http://www.php.net/manual/ref.ftp.php
      I like to have all the backups at one place so if the server HD craches I still have the backups at home or any other place.
      and is it posible to translate the unix timestamp to understandibel time stamp?

      another question (I asked this before) are these setup instructions still valid?

      from you snippet line 23-26:
      *  Setup:
      *    1. change $modx_backup_dir to directory for zip archives and make sure read/write permission is set for directory
      *    2. change $modx_backup_dir in /assets/modules/modbak/download.php file, note download.php requires full path name
      *        ie /home/username/public_html/_backup/

      if so then I do not understand what you mean if not maybe remove the parts that are not needed from the snippet.

      [translated by google in spanish]

      ¿Es posible para agregar esta función del ftp para upload la reserva a un ftp server alejado? http://www.php.net/manual/ref.ftp.php
      I tiene gusto de tener todas las reservas en un lugar tan si los craches del servidor HD yo todavía tienen las reservas en el país o cualquier otro lugar.
      ¿y es posible para traducir el timestamp de unix al grupo fecha/hora del understandibel?

      ¿otra pregunta (pedí esto antes) sigue siendo estas instrucciones de la disposición válidas?   
      de ti línea 23-26 del snippet: 
      * Disposición: 
      * 1. cambio $modx_backup_dir al directorio para los archivos del cierre relámpago y se cerciora de que el permiso de lectura/grabación esté fijado para el directorio
      * 2. el cambio $modx_backup_dir en el archivo de /assets/modules/modbak/download.php, nota download.php requiere nombre completo de la trayectoria
      * IE /home/username/public_html/_backup/ 
      si tan entonces no entiendo lo que significas si no quizá quitar las piezas que no son necesarias del snippet.

      greeting DImmy
        follow me on twitter: @dimmy01
        • 32982
        • 674 Posts
        updated, if you have problems whith your server chmod directorys sql and backup to 0777, is secure because the files still private,
          Jabiertxof (formerly XYZVISUAL)
          My bussines: http://marker.es
          • 20289
          • 958 Posts
          is there any step-by-step instructions about how to install this functionality in modx?
          any help documentation available?
            [td][Wiki] [Persian support forum]
            [SVN] [RTL SVN Branch] [bugs] [FishEye+Crucible] [Learn MODx!] | [My Google Code]
            [font=tahoma][برای دسترسی به راهنمای فارسی به [url=http://www.modxcms.ir]
            • 33175
            • 711 Posts
            Hi all !

            It is a good snippet smiley Thanks for it !

            If I can allow myself, I think that it would be useful to post a message like Thanks to have patience one moment, the autosaving is in hand.” during the work of the snippet. What think about it ?
              Sorry for my english. I'm french... My dictionary is near me, but it's only a dictionary !
              • 32982
              • 674 Posts
              i think you can do making the page style for the autobackup looks like loading and add a snippet to load another url
                Jabiertxof (formerly XYZVISUAL)
                My bussines: http://marker.es
                • 1535
                • 84 Posts
                Very handy snippet, thank you very much.

                I am also looking for a way to display a waiting message or a spinning GIF to indicate that something is happening.

                i think you can do making the page style for the autobackup looks like loading and add a snippet to load another url

                I am sorry, but I don’t understand what you mean by this. Can you try to explain further?

                There are various JS solutions that maybe could work, but I don’t know how to implement such a thing in MODx.

                Maybe something like this could be used?


                Thanks for any assistance.


                  • 1535
                  • 84 Posts
                  I am now getting this message every time the autobackup tries to run.

                  Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 40 bytes) in /home/2/p/xxx/www/modx/manager/includes/document.parser.class.inc.php(766) : eval()'d code on line 316

                  Here is the snippet from line 313 to 324:

                  	// Private function loadObjectList.
                  	function loadObjectList($key='', $resource) {
                  		$array = array();
                  		while ($row = mysql_fetch_object($resource)) {
                  			if ($key)
                  				$array[$row->$key] = $row;
                  				$array[] = $row;
                  		return $array;

                  So it looks like it has something to do with MySql. I tried emptying the logs as per another hint on this forum, but it did not help.

                  I can not increase the php limit as I am on a shared host.

                  Disabling the autobackup removes the error.

                  Any help is deeply appreciated.