Announcement

Collapse
No announcement yet.

Need to know two things...

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Need to know two things...

    Im trying to make a php program doing two things:

    I start by executing this:

    $output = shell_exec("tar cvfz /var/www/backup/file_backup_$date.tar.gz /var/www/");

    echo "<pre>$output</pre>";

    The output does not include all files and directories. What am I doing wrong? Is it something with userrights?

    After I want to create a cron file and I want to make sure it is started!

    Can you help me?

    Thanks,

    Frank

    #2
    Re: Need to know two things...

    I'm not an expert on shell_exec() . If you are getting some output, then it is probably a rights issue with the missing directories (folders). Make sure the world has read access to all folders to be included in your tar.

    IndyTim

    Comment

    Working...
    X