Speech Therapy, Apraxia Articulation Word FlashCards
Contact: kidsappbaba@gmail.com or Call : +1-980-APRAXIA
For Versatile People
$dir = "backupsDir";And with this, if you run this script, your backup should get triggered, it should create a joomla backup with SQL file, it should get zipped and sent to your google drive and your should get an email that says Backup has been shared with your email account !
$dh = opendir($dir);
$strToSreach = "NameOfThebackpFile".date("Ymd");
printf($strToSreach);
$nameOfFile = "";
//Search the file
while (false !== ($filename = readdir($dh))) {
if( substr($filename,-4) == ".sql" && substr($filename,0,15) == $strToSreach ) {
printf("Found the file: ".$filename);
$nameOfFile = $filename;
}
}
$path = $dir."/".$nameOfFile;
printf("zipping the file: ".$nameOfFile ."
");
exec('gzip ' . $path);
$path = $dir."/".$nameOfFile.".gz";
printf( "Uploading %s to Google Drive\n", $path ."
");
$service = new DriveServiceHelper( CLIENT_ID, SERVICE_ACCOUNT_NAME, KEY_PATH );