Windows-based Server Support
subspaceeddy - October 21, 2006 - 17:02
| Project: | backup |
| Version: | HEAD |
| Component: | Code |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
This patch enables Win32 server support on backup. In order to properly support win32, tar, and gzip need to be installed on the server and accessible through the 'Path' windows system variable. These can be obtained here: http://unxutils.sourceforge.net/.
Note: this is the first patch i've submitted, it was generated on win32 machine but hopefully i've stripped crlf properly. run the patch from the modules/backup directory.
Also note: as with the original module, backup will *not* work if drupal's temp folder is within the webroot.
| Attachment | Size |
|---|---|
| backup.patch | 5.5 KB |

#1
looks like i posted too early.. comment out the lines commented below. the code works on my local server but there are problems with the production server. i will look into this and post a new patch..
// slight hack to exclude drupal temp folder from inclusion in the tar. this will fail if the temp folder is within the website but not in the webroot, however. (i.e. /files/temp rather than /temp)
// actually, with the temp-folder-within-the-web detected and removed, tar still fails. gonna leave this line in for now tho.
// need to put in warning that temp folder should be outside web-root
// if ($line == $tmpdir) {
// continue;
// }
#2
I'm going to mark this one as closed since I have released a Drupal 5 version of this module, and I'm doing things much differently now.
-- Doug