Buru SFTP Server

0 votes
asked Aug 14 by stiv1968 (120 points)

Hello

I am making a backup in FreePBX(freepbx.org) and saving it to the Buru SFTP server.
The backup is created but the end status is considered erroneous.

Backup log:
August 14, 2020, 1:52 am - Initializing Backup 4
August 14, 2020, 1:52 am - Backup Lock acquired!
August 14, 2020, 1:52 am - Running pre-backup hooks...
August 14, 2020, 1:52 am - data: Backup Lock acquired!
August 14, 2020, 1:52 am - data: Running pre-backup hooks...
August 14, 2020, 1:52 am - Adding items...
August 14, 2020, 1:53 am - Building manifest...
August 14, 2020, 1:53 am - Creating backup...
August 14, 2020, 1:54 am - Storing backup...
August 14, 2020, 1:54 am - SSH Error (127) - Received ["mkdir: error in `mkdir': Already exists"] from /usr/bin/ssh -o StrictHostKeyChecking=no -i /home/asterisk/.ssh/id_rsa -l stiv1968 192.168.200.7 -p 22 'mkdir -p /New'
August 14, 2020, 1:54 am - Running post-backup hooks...
August 14, 2020, 1:54 am - Backup completed with errors!

The command "mkdir -p" should not give an error if the directory exists
This works without error when using other SSH Linux servers.
You can add processing of the -p key to the mkdir command.

Best regard,
Stiv

1 Answer

0 votes
answered Aug 14 by Lukas Pokorny (113,730 points)

Hello,

Buru SFTP Server's virtual shell is not a full-featured Linux-like shell - it only simulates a subset of it - mostly what's needed by SCP clients (such as WinSCP).

However, mkdir's "-p" argument looks like a simple and nice-to-have feature, and something we should offer. We'll add support for it to one of the next releases.

Thanks for bringing this to our attention!

...