Services\Synchronize::startRemoteToLocalSync PHP Method

startRemoteToLocalSync() public method

public startRemoteToLocalSync ( $input )
    public function startRemoteToLocalSync($input)
    {
        try {
            $this->syncFromRemote($this->listener->current_time, $this->listener->restore_file, $input);
            $this->restore($this->listener->restore_file);
            return $this->listener->syncSucceeds('Successfully synchronized remote to local.');
        } catch (Exception $e) {
            return $this->listener->syncFails($e->getMessage(), 'backend/synchronize/webToLocal');
        }
    }