setup for place of automatic backup

Discussion in 'Feature Requests' started by jancici, Apr 1, 2008.

  1. jancici

    jancici New Member

    I would like to save all backup file put on specific path.
    so I am modifing file

    Code:
    /root/ispconfig/scripts/shell/backup.php
    on line 111 I have this :
    Code:
     $backup_dir = "PATH_FOR_BACKUP/var/www/web".$web_id."/backup";
    new line after 111
    Code:
    $backup_dir_w = "PATH_FOR_BACKUP/var/www/web".$web_id;
    and new lines at 115
    Code:
    if([email protected]_dir($backup_dir_w)) {
      mkdir($backup_dir_w,0755);
    }
    repalce PATH_FOR_BACKUP with som configuration option ...

    what do you think?
     
  2. jancici

    jancici New Member

    I have done some more modifications.
    I am also saving name of the site into backup.dat file. the name is compse from web_host and web_domain value of the site.

    modified file is attached
     

    Attached Files:

Share This Page