SleePyCode Forums

Special Site & Other Boards => PasteBin => Topic started by: SleePy on Jun 08, 2007, 09:43 PM

Title: Paste-1181339021:v:use_geshi-1:v:type-php
Post by: SleePy on Jun 08, 2007, 09:43 PM
<?php
$dir = date('Y-m-d', time());
$pass = '2424';

if(!is_dir('/home/cpanelname/backups/' . $dir))
   mkdir ('/home/cpanelname/backups/' . $dir);

chdir ('/home/cpanelname/backups/' . $dir);
$filename = 'backup-yoursite.com-' . $dir . '.tar.gz';
@shell_exec('curl -Ok -u cpanelname:'.$pass.' https://yoursite.com:2083/getbackup/'.$filename);
?>