Transfers backups created with rah_backup to a offsite location via SSH File Transfer Protocol. This module uses phpseclib for its wonderful pure-PHP SFTP implementation.
Using Composer:
$ composer require rah/rah_backup_sftp:*
The plugin adds set of configurable preferences to Textpattern’s Preferences panel.
The remote SFTP server hostname. This can either be a domain name or an IP address. For example:
example.tld
The remote SFTP server port number. The default SSH port is 22. For example:
25522
Path to the directory used to store the backups on the remote server. If left empty, it uses the user’s default SFTP root directory that normally defaults to the user’s home directory. For example:
/backups/uploads
The used directory needs to be writable by the user.
Username used to login to the remote server. For example:
john
The user’s login password, or passphrase for the RSA private key if key authentication is used:
mypassword
If set, RSA public key is used for logging in instead of plaintext password. This option takes a path to your RSA private key file. The path is relative to Textpattern installation location (e.g. textpattern/
).
../../id_rsa
The above would use a id_rsa
file placed to the directory located one level above your main index.php
file.
- Initial release.