I was wondering if this module would get ported sooner or later. I hope this module gets a patch/update for 5.0.

Comments

dmuth’s picture

Yes, I hope to make the port sooner rather than later this time. :-)

-- Doug

ethanw’s picture

I took a stab at this today for a project. I'm not done yet, but I did end up making a lot of changes. The _submit hook seemed to not work and I ran into the status 2 exit issue from tar. To solve these issues I switched from using form submission to using a link to the backup/download callback and using the Archive_Tar Pear library. Rough, but working on my machine, alpha code (including Archive_Tar module and diff of backup.module) is here:

http://www.box.net/public/5kk0p7ebz5

Changes made (more complete change log in the tarball):

* CHANGED DELETE FROM CACHE SQL TO 4 CLEAR_CACHE_ALL CALLS FOR ALL CACHE TABLES
* CHANGED MENU ITEMS TO USE SENTENCE CAPITATLIZATION
* ADDED BACKUP.INFO FILE
* MOVED BACKUP ADMIN PATHS INTO SETTINGS SECTION
* CREATED BACKUP_PAGE_FORM TO CONFORM TO NEW FORM BUILDER FUNCTION REQUIREMENT
* LEFT DIRECT JS INJECTION ALONE, DID NOT CHANGE TO DRUPAL_ADD_JS (THOUGH I PROBABLY SHOULD HAVE)
* TOOK OUT USE OF TAR AND GZIP IN FAVOR OF ARCHIVE_TAR PEAR LIBRARY FOR MANIPULATING
* CHANGED TEMP FILE TO DRUPAL TEMP AND ADDED EXCLUDE PATTERN TO TAR COMMAND TO NOT INCLUDE PAST BACKUPS

jpsalter’s picture

Awesome!

The alpha works as advertised.

Note: I did have to change Drupal's temporary directory from an absolute to a relative path:
"/tmp" to "tmp"

This puts the temporary directory (where the mysql dump goes) within the Drupal's path (and thus gets Tar'ed).

dmuth’s picture

Status: Active » Closed (duplicate)

I'm marking this one as a dupe. I am tracking this issue under http://drupal.org/node/120593

-- Doug