--- C:/Dokumente und Einstellungen/Eclipse IDE/Desktop/backup_files-6.x-1.1.tar/backup_files/backup_files.module	Mon Nov 24 11:59:57 2008
+++ C:/Dokumente und Einstellungen/Eclipse IDE/Eigene Dateien/backup_files.module	Fri May 08 17:11:03 2009
@@ -152,12 +152,12 @@
       $fp = explode("\n", $fp);
       foreach ($fp as $dir) {
          if ($dir != '') {
-            $rp = realpath('.'. $bp. trim($dir));
-            if ($rp) {
+            $rp = $_SERVER['DOCUMENT_ROOT'] . $bp . trim($dir);
+            if (file_exists($rp)) {
                $relpath = substr($rp, $lcwd);
                backup_files_scan($rp, $lcwd, $files);
             } else {
-               drupal_set_message('Does not exist: '. $dir, 'warning');
+               drupal_set_message('Does not exist: '. $rp, 'warning');
             }
          }
       }
@@ -169,8 +169,8 @@
    
    // create the backup file
    if ($button == 'edit-backup') {
-      $bfn = realpath('.'. $bp. $temp). '/backup.tgz';
-      $gz = new Archive_Tar($bfn, true);
+      $bfn = $_SERVER['DOCUMENT_ROOT'] . $bp . $temp . '/backup.tgz';
+      $gz = new Archive_Tar($bfn, true) or drupal_set_message("Could not create archive ". $bfn, "warning");
       $gz->create($files);
 
       $fname = variable_get('site_name', "backup"). '_files_'.  date('Y-m-d\TH-i-s'). '.tgz';
