public/wordpress/wp-content/plugins/backupbuddy/destinations/live/live_periodic.php
/* _step_daily_init()
	 *
	 * Daily housekeeping at the beginning of the daily Live periodic process.
	 *
	 */
_step_daily_init()
Daily housekeeping at the beginning of the daily Live periodic process.
_step_daily_init () Daily housekeeping at the beginning of the daily Live periodic process .
private static function _step_daily_init( $manual_snapshot = false ) {
		pb_backupbuddy::status( 'details', 'BackupBuddy v' . pb_backupbuddy::settings( 'version' ) . ' Live Daily Initialization -- ' . pb_backupbuddy::$format->date( pb_backupbuddy::$format->localize_time( time() ) ) . '.' );
		self::$_state['stats']['recent_send_fails'] = 0; 
		self::$_state['stats']['last_send_fail'] = 0; 
		self::$_state['stats']['last_send_fail_file'] = ''; 
		self::reset_send_attempts(); 
		self::$_state['stats']['wait_on_transfers_start'] = 0; 
		self::_request_kick_cron();
		self::_truncate_log();
		self::backup_catalog();
		if ( true === $manual_snapshot ) {
			self::_request_manual_snapshot();
		} else {
			self::_request_manual_snapshot( $cancel = true );
		}
		return true;
	}
private static function _step_daily_init ( $ manual_snapshot = false ) { pb_backupbuddy :: status ( 'details' , 'BackupBuddy v' . pb_backupbuddy :: settings ( 'version' ) . ' Live Daily Initialization -- ' . pb_backupbuddy :: $ format -> date ( pb_backupbuddy :: $ format -> localize_time ( time ( ) ) ) . '.' ) ; self :: $ _state [ 'stats' ] [ 'recent_send_fails' ] = 0 ; self :: $ _state [ 'stats' ] [ 'last_send_fail' ] = 0 ; self :: $ _state [ 'stats' ] [ 'last_send_fail_file' ] = '' ; self :: reset_send_attempts ( ) ; self :: $ _state [ 'stats' ] [ 'wait_on_transfers_start' ] = 0 ; self :: _request_kick_cron ( ) ; self :: _truncate_log ( ) ; self :: backup_catalog ( ) ; if ( true === $ manual_snapshot ) { self :: _request_manual_snapshot ( ) ; } else { self :: _request_manual_snapshot ( $ cancel = true ) ; } return true ; }
_step_daily_init()
 Daily housekeeping at the beginning of the daily Live periodic process.
_step_daily_init () Daily housekeeping at the beginning of the daily Live periodic process .
// Reset daily fail count. // Reset daily fail stats, // Reset daily fail stats. // Reset 't' key for all items in catalog so we can try again. NOTE: Also saves state and catalog. // Reset daily time we started waiting on unfinished transfers. // Truncate log if it is getting too large. Keeps newest half. // Backup catalog file. /* Removed Mar 20, 2017
		if ( false === self::_load_state() ) {
			return false;
		}
		*/