My problem looks similar to others listed, but my situation points to a clear source.
I just installed 'backup' on two independent drupal installations on the same server (different domains; same account). One worked fine; the other gave me the following error message:
Command "tar cfz /tmp/drupal_backup_c4ULdS .htaccess cron.php database includes files misc modules scripts sites themes update.php xmlrpc.php index.php slogans.php calendar txt files /tmp/drupal_backup_database-2006-12-10-11:40:52-917213.gz 2>&1" returned status 2
The one that yielded the error message is an installation where drupal is running in a subdirectory named "preview/", using the following index.php file in the domain root:
<?php
chdir("preview/");
include("index.php");
?>Seems likely that this redirect is causing the problem with backup; must I relocate my installation to use backup? It's something I'm planning on doing eventually anyway.
Thanks,
Nancy
Comments
Comment #1
dmuth commentedUm, that's an interesting way to call Drupal. As far as I know, it is also rather non-standard, so that's going to be tough for me to support.
If I understand the setup correctly though, you should be able to modify settings.php so that you can run that installation out of the preview/ directory. Backup should work properly in that case.
-- Doug
Comment #2
Nancy Nangeroni commentedHaving moved drupal out of the subdirectory, I'm not inclined to work further on that issue. However, now that I'm working out of the root directory, there are other subdirectories which I would like to exclude from backup. I don't see a mechanism for doing this. When I tried to run backup, it tried to include a lot of non-drupal directories, which apparently caused the backup to fail with this message:
* Command "tar cfz /tmp/drupal_backup_mKXWb6 {long list of files, directories} files /tmp/drupal_backup_database-2006-12-11-13:40:29-895671.gz 2>&1" returned status 137
* user warning: Lost connection to MySQL server during query query: INSERT INTO accesslog (title, path, url, hostname, uid, sid, timer, timestamp) values('backup', 'admin/backup', 'http://gendertalk.com/?q=admin/backup', '66.31.27.159', 1, '886b861a51e762994f004653b3e7c6dc', 95566, 1165862518) in /homepages/1/d151575847/htdocs/gendertalk/includes/database.mysql.inc on line 121.
Comment #3
rl commentedI am having the same issue. I have migrated to Drupal from using standard HTML files and still have that hierarchy. It would be great if there was an ability to exclude files and directories. I was working fine with backup until I moved drupal to the main public_html directory. I now get errors when running the backup script.
Thanks for the great module.
Rich
Comment #4
dmuth commentedI'm going to close this one because I do things much differently in Drupal 5, and this may not be an issue anymore.
-- Doug