common: Reconfigured bash in backup scripts

Added options for better error handling
dehydrated
Felix Stupp 5 years ago
parent 7e5ec719d3
commit 452efc2717
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -1,6 +1,6 @@
#!/bin/sh
#!/bin/bash
set -e;
set -euxo pipefail;
dir=$(dirname "$1");
date=$(date +%Y-%m-%d-%H-%M);

@ -1,6 +1,6 @@
#!/bin/sh
#!/bin/bash
set -e;
set -euxo pipefail;
file={{ backups_databases_directory | quote }}"/$1.sql.gpg";

@ -1,6 +1,6 @@
#!/bin/sh
#!/bin/bash
set -e;
set -euxo pipefail;
# Arguments
path="$1";

Loading…
Cancel
Save