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