I've find some ones wich does this but all of the requieres previous compression. I can't modify them because my skills in programing are less than zero absolute.
Thanks in advance.
When I saw the script I felt myself a little bit stupid just for ignore how to do something so easy (...and call myself an "adavanced user" Go figure).
Second: please, detail a little bit more how should I write /source and /destination because the script I done (backup.pl) just gives a 500 error message.
a) absolute path to the script: /home/httpd/vhosts/mysite.com/cgi-bin/backup/backup.pl
b) source: /home/httpd/vhosts/mysite.com/httpdocs/docs
c) destination: /home/httpd/vhosts/mysite.com/httpdocs/backup
And, yes, it's a linux server with Red Hat and a Plesk control pannel (server for dummies, like me)
Thanks in advance.
sh: cp -r
/home/httpd/vhosts/mysite.com/web_users/top/*.*
/home/httpd/vhosts/mysite.com/httpdocs/backup/*.*: No such file or directory
[Mon Aug 30 10:03:16 2004] [error] [client 80.58.13.43] Premature end of script headers: /home/httpd/vhosts/mysite.com/cgi-bin/backup/backup.pl
THIS doesn't works:
#!/usr/bin/perl
print "Content-Type: text/html";
print qx ("cp cartoon.htm joke.htm");
From the error log:
sh: cp cartoon.htm joke.htm: command not found
[Mon Aug 30 18:28:33 2004] [error] [client 80.58.13.43] Premature end of script headers: /home/httpd/vhosts/mysite.com/cgi-bin/backup/backup.pl
system("cp cartoon.htm joke.htm"); or:
$command = `cp cartoon.htm joke.htm`; or:
$command = qx/cp cartoon.htm joke.htm/; Note: you must use quotation marks for the first command, backquotes for the second and forward slashes for the third command...
Now it works fine. I found another script (crone.cgi, a fake crontab) to do the copy automatically.
Thanks a lot again.
P.S.: a 55$ handbook helped me a lot too "Perl, CGI and Javascript complete")