File Editor
Directories:
.. (Back)
Files:
addon-base-v2.php
addon-not-yet-present.php
azure.php
backblaze.php
backup-module.php
cloudfiles-new.php
cloudfiles.php
dreamobjects.php
dropbox.php
email.php
ftp.php
googlecloud.php
googledrive.php
insufficient.php
onedrive.php
openstack-base.php
openstack.php
openstack2.php
pcloud.php
remotesend.php
s3.php
s3generic.php
sftp.php
template.php
updraftvault.php
webdav.php
Create New File
Create
Edit File: sftp.php
<?php if (!defined('UPDRAFTPLUS_DIR')) die('No direct access allowed.'); if (class_exists('UpdraftPlus_Addons_RemoteStorage_sftp')) { // Migrate options to standard-style - April 2017. This then enables them to get picked up by the multi-options settings translation code if (!is_array(UpdraftPlus_Options::get_updraft_option('updraft_sftp')) && '' != UpdraftPlus_Options::get_updraft_option('updraft_sftp_settings', '')) { $opts = UpdraftPlus_Options::get_updraft_option('updraft_sftp_settings'); UpdraftPlus_Options::update_updraft_option('updraft_sftp', $opts); UpdraftPlus_Options::delete_updraft_option('updraft_sftp_settings'); } class UpdraftPlus_BackupModule_sftp extends UpdraftPlus_Addons_RemoteStorage_sftp { public function __construct() { parent::__construct('sftp', 'SFTP/SCP'); } } } else { updraft_try_include_file('methods/addon-not-yet-present.php', 'include_once'); /** * N.B. UpdraftPlus_BackupModule_AddonNotYetPresent extends UpdraftPlus_BackupModule */ class UpdraftPlus_BackupModule_sftp extends UpdraftPlus_BackupModule_AddonNotYetPresent { public function __construct() { parent::__construct('sftp', 'SFTP/SCP'); } } }
Save Changes
Rename File
Rename