Bobcares

DirectAdmin SFTP Backup | Tutorial Steps

by | Dec 12, 2023

With the instructions given in this article, we can easily carry out SFTP backup in DirectAdmin. At Bobcares, with our DirectAdmin Support Services, we can handle your issues.

SFTP Backup in DirectAdmin

With DirectAdmin, we may usually choose between FTP, SCP (Secure Copy Protocol), and WebDAV for remote backup. By employing a workaround, we can still accomplish SFTP-based backups. The typical procedure for setting up SFTP-based remote backups in DirectAdmin is the following:

1. Firstly, an SFTP server is required for storing backup files. Either utilise a cloud-based SFTP service or set up an SFTP server on a distant computer.

2. SSH keys should be created on the DirectAdmin server. Then, a key pair (public and private keys) must be created. The public key will be put to the list of approved keys on the SFTP server, and the private key will be utilised on the DirectAdmin server.

3. To enable key-based authentication, add the public key to the authorised keys file on the SFTP server. As a result, a password will not be required for the DirectAdmin server to safely connect to the SFTP server.

4. Create a script on the DirectAdmin server that transfers backups to the remote SFTP server using the sftp command and the required arguments. An SFTP transfer can be facilitated by using an application such as lftp.

5. Create a cron job to execute the backup script at certain times. This will make the backup procedure automatic.

[Need to know more? Get in touch with us if you have any further inquiries.]

Conclusion

The procedures in this article can be used if we wish to transfer backups from DirectAdmin to a remote site via SFTP rather than FTP.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.