Skip to content

Archive Files to Google Cloud Storage

Cloud Voice can copy your call recordings and system backups to a Google Cloud Storage bucket, either as a one-off transfer or on a recurring schedule. This keeps a durable off-box copy of your files and, if you choose, frees up storage on the phone system. This page walks you through preparing the Google Cloud side, connecting the bucket to Cloud Voice as an archive server, and building a task that moves the files.

ItemRequirement
System firmwareVersion 84.22.0.17 or later
PlanEnterprise plan (self-managed phone systems) or Ultimate plan (Cloud Voice-hosted phone systems)
  • Archive servers: up to 10
  • Archive tasks: up to 200

Archiving to Google Cloud Storage involves two sides of setup. On Google Cloud you provision the account and destination:

  • A service account with full access to your Cloud Storage resources, plus a JSON access key that Cloud Voice uses to authenticate its upload requests.
  • A bucket to hold the archived files.

On the phone system you connect and schedule:

  • Register the bucket as an archive server.
  • Build one or more archive tasks that define which files move and when.

When a task runs, Cloud Voice authenticates to Google Cloud with the service account’s access key and uploads the selected files to your bucket.

Step 1: Create a service account in Google Cloud

Section titled “Step 1: Create a service account in Google Cloud”
  1. Sign in to the Google Cloud Console.

  2. On the project selector, choose an existing project or create a new one. The example below uses a project named Cloud Voice.

    Google Cloud project selector with the option to pick or create a project

  3. Create the service account:

    a. In the top search bar, look up and open Service Accounts.

    Searching for Service Accounts in the Google Cloud search bar

    b. Click CREATE SERVICE ACCOUNT.

    Cloud Voice, the Create Service Account button on the service accounts page

    c. In Service account details, type a recognizable name in the Service account name field, then click CREATE AND CONTINUE.

    Cloud Voice, entering a name in the service account details step

    d. In Grant this service account access to project (optional), open the Role drop-down, find and select Storage Admin, then click DONE. The new service account appears in the list.

    Cloud Voice, assigning the Storage Admin role to the service account

  4. Generate an access key for the service account:

    a. In the service accounts list, click the more-options icon (three vertical dots) next to your service account and choose Manage keys.

    Cloud Voice, opening Manage keys for the service account

    b. Click ADD KEY, then select Create new key.

    Cloud Voice, the Add Key menu on the key management page

    c. Set Key type to JSON (JavaScript Object Notation, a plain-text credential file) and click CREATE. The key downloads to your computer as a JSON file.

    Cloud Voice, choosing the JSON key type before creating the key

    d. Click CLOSE to dismiss the dialog.

  1. In the top search bar, look up and open Cloud Storage. This takes you to the buckets page.

    Searching for Cloud Storage in the Google Cloud search bar

  2. Click CREATE.

    The Create button on the Cloud Storage buckets page

  3. In Name your bucket, enter a recognizable name and click CONTINUE.

    Naming the new Cloud Storage bucket

  4. Under Choose where to store your data, pick the region for the bucket and click CREATE.

    Cloud Voice, selecting a region for the new bucket

Step 3: Add the bucket as an archive server

Section titled “Step 3: Add the bucket as an archive server”
  1. Sign in to the PBX web portal (the Cloud Voice admin web interface) and go to System > Archive.

  2. On the Archive Task tab, click Archive Server.

    The Archive Server button on the Archive Task tab

  3. Add the bucket:

    a. Click Add.

    b. Fill in the dialog:

    Cloud Voice, the archive server settings for Google Cloud Storage

    SettingDescription
    NameA label that helps you recognize this server.
    Server TypeSelect Google Cloud Storage.
    Private Key (JSON type)Click Browse and upload the JSON key file you downloaded in Step 1.

    c. Click Save. The bucket now appears in the archive server list.

  4. Close the window.

  1. On the Archive Task tab, click Add.

  2. In Task Configuration, set the basics:

    The task configuration fields for a new archive task

    SettingDescription
    NameA label that helps you recognize this task.
    File TypeChoose Recording Files or Backup Files.
    Data RangeThe time span of files to archive. You can cover up to 31 days per task.
    Sync FrequencyHow often the task runs. See the options below.
    Recording File FormatThe format recordings are downloaded and stored in. Available only when the file type is recording files; every recording in the range is archived in the format you pick.

    Sync Frequency options:

    • Once: Archives the files immediately after you save the task.
    • Daily: Runs each day at the time you choose from the drop-down.
    • Weekly: Runs on the weekday and time you choose.
    • Monthly: Runs on the day of the month and time you choose.
  3. In Storage Configuration, choose where the files land:

    SettingDescription
    Archive ServerSelect the Google Cloud Storage bucket you added in Step 3.
    Select Folder/PathChoose the bucket or a folder inside it as the destination.
    Storage MethodControls how files are foldered on the server (see below).
    Skip archived filesOptional; recording files only. When on, files already archived are skipped. When off, they are archived again, their stored location is updated, and the earlier copy is left in place on the server.
    Delete local files after archivingOptional; recording files only. When on, local copies are removed after upload, they remain playable and downloadable from the PBX admin portal and the Cloud Voice App, but not from the third-party server or Dynamics 365. When off, local copies are kept.
    Organize Files by DateOptional. When on, files are placed in date-named subfolders (YYYYMMDD, for example 20260301). When off, files go straight into the selected path.

    Storage Method depends on how often the task runs:

    • One-time task
      • Create Task Folder: Creates a folder named FileType-TaskName under the selected path and stores the files there.
      • Save Directly to Selected Path: Stores the files in the selected path without creating a folder.
    • Recurring task
      • Create Folder per Execution: Each run creates a folder named FileType-TaskName-ExecutionDate under the selected path.
      • Create Task Folder Once and Reuse It: The first run creates a FileType-TaskName folder, and later runs reuse it.
      • Save Directly to Selected Path: Each run stores files in the selected path without creating a folder.
  4. Optional. Set a retention policy so Cloud Voice prunes older files on the server.

    The retention policy settings for an archive task

    SettingDescription
    Retention TypeRetention by Quantity keeps up to a set number of files or folders and deletes the oldest once that number is exceeded. Retention by Days keeps files or folders for a set period and deletes anything older.
    Retention LimitThe maximum count (files/folders) or number of days, matching the retention type you chose.
    Retention UnitFolder counts the task folders created on the server; File counts individual archived files.
  5. Click Save.

The selected files are uploaded to your bucket or folder either right away or at the scheduled time.

Confirm the outcome in either place:

  • In Cloud Voice: Go to System > Archive > Archival Logs. A Succeeded value in the Result column means the files reached Google Cloud Storage.

    The archival logs list showing task results

    If a task fails, Cloud Voice raises a Failed to Archive File(s) event. Click the retry icon on that row to run it again.

    Retrying a failed archive task from the archival logs

  • In Google Cloud: Open the bucket in the Google Cloud Console. The archived files appear in the list when the transfer succeeds.

    Cloud Voice, archived recording files shown in the Cloud Storage bucket