zEitEr
Super Moderator
Hello,
Here you can find instructions on how to add sFTP support to backup system of DirectAdmin.
Description
A set of patched scripts to allow Directadmin to
- store
- list
- download
backups over SSH using SFTP.
Author of patches
- Alex Grebenschikov, Poralix, (www.poralix.com), 2018
Version
- Version: Version: 0.1.poralix
- Last modified: Tue Jan 30 12:43:50 +07 2018
- Repository URL: https://github.com/poralix/directadmin-sftp-backups
- Report issues to URL: https://github.com/poralix/directadmin-sftp-backups/issues
- Home page: www.poralix.com
Requirements
- For Debian servers:
- For CentOS:
Installation
Usage
Go to directadmin Admin login -> Admin Backup/Transfer and set:
- Username: real ssh username
- Password: real ssh password or a full path to a SSH-key
- Remote Path: full path to a backup directory from a remote server
- Port: 22
The script will detect the specified port 22 and will use SFTP to connect to SSH port. If you want FTP/FTPS just change port to 21 and update other credentials (the same script can be used for FTP/FTPS/SSH/SFTP).
If you run sFTP, SSH on a different port modify the scripts and your port to the line:
The line exists in all 3 files:
- ftp_download.php
- ftp_list.php
- ftp_upload.php
Comments?
Here you can find instructions on how to add sFTP support to backup system of DirectAdmin.
Description
A set of patched scripts to allow Directadmin to
- store
- list
- download
backups over SSH using SFTP.
Author of patches
- Alex Grebenschikov, Poralix, (www.poralix.com), 2018
Version
- Version: Version: 0.1.poralix
- Last modified: Tue Jan 30 12:43:50 +07 2018
- Repository URL: https://github.com/poralix/directadmin-sftp-backups
- Report issues to URL: https://github.com/poralix/directadmin-sftp-backups/issues
- Home page: www.poralix.com
Requirements
- For Debian servers:
Code:
apt-get install sshpass
- For CentOS:
Code:
yum install sshpass
Installation
Code:
cd /usr/local/directadmin/scripts/custom/
git clone https://github.com/poralix/directadmin-sftp-backups.git
cp -f directadmin-sftp-backups/ftp_download.php ./
cp -f directadmin-sftp-backups/ftp_list.php ./
cp -f directadmin-sftp-backups/ftp_upload.php ./
chmod 700 ftp_*.php
chown diradmin:diradmin ftp_*.php
Usage
Go to directadmin Admin login -> Admin Backup/Transfer and set:
- Username: real ssh username
- Password: real ssh password or a full path to a SSH-key
- Remote Path: full path to a backup directory from a remote server
- Port: 22
The script will detect the specified port 22 and will use SFTP to connect to SSH port. If you want FTP/FTPS just change port to 21 and update other credentials (the same script can be used for FTP/FTPS/SSH/SFTP).
If you run sFTP, SSH on a different port modify the scripts and your port to the line:
Code:
SSH_PORTS="22 2200 22022";
The line exists in all 3 files:
- ftp_download.php
- ftp_list.php
- ftp_upload.php
Comments?
Last edited: