#20 Errors in shell mode

2.2
closed-fixed
nobody
None
5
2011-10-04
2008-10-15
Smitty
No

1. If you specify more than one folder in shell mode (running a cron job), the files in the folders are not backed up because of an error in line 237 of backup.php.

To solve this problem you must change the "|" into a "," in this line. So you have to change

foreach(explode("|",$_POST['man_dirs']) as $dir) $files=array_merge($files,PMBP_get_files($dir));

to

foreach(explode(",",$_POST['man_dirs']) as $dir) $files=array_merge($files,PMBP_get_files($dir));

2. At the moment it is not possible to tell the script, that the files should be zipped. I solved this problem for myself by adding

$_POST['packed'] = TRUE;

after line 68. But perhaps you want to add another argument to switch this on?

Discussion

  • Dirk

    Dirk - 2011-09-19
    • status: open --> open-accepted
     
  • Dirk

    Dirk - 2011-10-04
    • milestone: --> 2.2
    • status: open-accepted --> open-fixed
     
  • Dirk

    Dirk - 2011-10-04

    This problem was in the documentation. The directories have to be separated with | !
    Therefore in your shell you have to surround it by " like: "dir/dir2/file|dir3/file4|dir5/"

     
  • Dirk

    Dirk - 2011-10-04
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks