Hello Every one I need help with my app run on docker and then I have tool for backup data from mongo with shell script
#!/bin/bash
DIRECTORY="home"
CONTAINER="mongodb"
DB_NAME="pos-rabbit"
BACKUP_PATH="backup"
BACKUP_NAME="Pos-Rabbit_$(date +%Y-%m-%d)"
# Backup
docker exec $CONTAINER mongodump --db $DB_NAME --out /$BACKUP_PATH/$BACKUP_NAME
Please help me
This is my error
{ [String: '']
stdout: '',
stderr: '/bin/sh: 11: docker: not found\n/bin/sh: 12: docker: not found\ntar: Pos-Rabbit_2020-02-19: Cannot stat: No such file or directory\ntar: Exiting with failure status due to previous errors\n/bin/sh: 20: gdrive: not found\n/bin/sh: 25: docker: not