pg_basebackup: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On Debian possible default full paths are:

/usr/lib/postgresql/9.4/bin/pg_basebackup - from package: postgresql-client-9.4
/usr/bin/pg_basebackup - from package: postgresql-client-common

You may install the required package with command apt-get install {package}
Error in other languages:
pg_basebackup: bevel nie gevind nie
pg_basebackup: comandă negăsită
pg_basebackup: comando não encontrado
pg_basebackup: commande introuvable
pg_basebackup: command not found
pg_basebackup: käsku ei ole
pg_basebackup: không tìm thấy lệnh
pg_basebackup: komanda nerasta
pg_basebackup: Kommando nicht gefunden.
pg_basebackup: kommandot finns inte
pg_basebackup: komut yok
pg_basebackup: nie znaleziono polecenia
pg_basebackup: níor aimsíodh an t-ordú
pg_basebackup: no se encontró la orden
pg_basebackup: no s'ha trobat l'ordre
pg_basebackup: opdracht niet gevonden
pg_basebackup: parancs nem található
pg_basebackup: perintah tidak ditemukan
pg_basebackup: príkaz nenájdený
pg_basebackup: příkaz nenalezen
pg_basebackup: команда не найдена
pg_basebackup: командата не е открита
pg_basebackup: 命令找不到
pg_basebackup: コマンドが見つかりません