Closed (duplicate)
Project:
backup
Version:
master
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
19 Jan 2007 at 00:45 UTC
Updated:
19 Feb 2007 at 14:32 UTC
I was wondering if this module would get ported sooner or later. I hope this module gets a patch/update for 5.0.
Comments
Comment #1
dmuth commentedYes, I hope to make the port sooner rather than later this time. :-)
-- Doug
Comment #2
ethanw commentedI 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
Comment #3
jpsalter commentedAwesome!
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).
Comment #4
dmuth commentedI'm marking this one as a dupe. I am tracking this issue under http://drupal.org/node/120593
-- Doug