You are here

backup_migrate_sftp.module in Backup and Migrate SFTP 6

Same filename and directory in other branches
  1. 7 backup_migrate_sftp.module

Add a destination type for SFTP support for Backup and Migrate.

File

backup_migrate_sftp.module
View source
<?php

/**
 * @file
 * Add a destination type for SFTP support for Backup and Migrate.
 */

/**
 * Implements hook_backup_migrate_destination_types().
 */
function backup_migrate_sftp_backup_migrate_destination_types() {
  $out = array(
    'sftp' => array(
      'description' => t('Save the backup files to any a directory on an SFTP server.'),
      'file' => drupal_get_path('module', 'backup_migrate_sftp') . '/destinations.sftp.inc',
      'class' => 'BackupMigrateDestinationSFTP',
      'type_name' => t('SFTP Directory'),
      'can_create' => TRUE,
    ),
  );
  return $out;
}

Functions

Namesort descending Description
backup_migrate_sftp_backup_migrate_destination_types Implements hook_backup_migrate_destination_types().