We are needing to move our Matrix install from one server to another, so I am needing to use the backup.sh script, which I have used many times before. Strangely I get this error:
/opt/matrix/scripts/backup.sh: 328: /opt/matrix/scripts/backup.sh: [[: not found
/opt/matrix/scripts/backup.sh: 343: /opt/matrix/scripts/backup.sh: [[: not found
/opt/matrix/scripts/backup.sh: 795: /opt/matrix/scripts/backup.sh: [[: not found
Backup failed
gzip: compressed data not written to a terminal. Use -f to force compression.
For help, type: gzip -h
Has anyone seen this before or know why this would happen?
You must have an actual posix shell at /bin/sh (basically unheard of in our hosting) and our backup.sh still specifies (incorrectly) /bin/sh despite using bashisms (the [[ is a bash keyword).