News:

Please note these forums are mostly a testing ground for my SMF work and I don't really use them otherwise.

Main Menu

Paste-1181339021:v:use_geshi-1:v:type-php

Started by SleePy, Jun 08, 2007, 09:43 PM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

SleePy

<?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);
?>
No siggy! :D