[release] sFTP backups for DirectAdmin (version: 0.1.poralix)

Livonias

New member
Joined
Oct 11, 2019
Messages
4
Getting an error

Hi Alex,

Thanks so much for this script. I've tried to make backups to my STACK environment (SFTP over ssh port 22) for ages.

I've installed the script and setup the cron, however it gives this error:

Code:
User justin has been backed up. <9:25:03>
ftp_upload.php exit code: 1
ftp_upload.php output: [upload] sftp return code: 1
<9:25:03>

Although a backup error has occurred, the upload of valid backups would have still been attempted to ftps://stack.*.nl/October/11/ <9:25:03>
When I start a sftp connection at Cyberduck for example it works perfectly. I see in the url it says ftps instead of sftp. I'm probably doing something wrong, but not sure what. Do you have any idea?

My cron settings:
 

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
13,818
Location
GMT +7.00
Try and change secure FTPs to plain FTP, and see whether or not it helps. The custom script will detect sFTP by port number specified in the backup task.
 

Livonias

New member
Joined
Oct 11, 2019
Messages
4
Thanks, just tried a few different settings and normal FTP with port 22 works.

But it does only work with default path's. When I use custom path: %B/%d or %B/%d/ it gives an error. When I choose one from the list it works perfectly.

So no big issue right here, but if you have a fix let me know please :) thanks again for this great script!
 

experttechit

Verified User
Joined
Jun 30, 2019
Messages
36
Hi @zEitEr

On a new server we are getting the error:

  • sftp return code: 3
    Failed to change pseudo terminal's permission: Operation not permitted
    FTP information invalid.

    Can you help at all please? we have the same settings working on other servers so I know they are correct, but for some reason getting this error?

    Thanks in advance.
 
Top