commit d89e73404a3675204a42311ddd4339d35e2042fd
parent 191360420f35928f2b59e81c159789efe41dec5d
Author: Oscar Benedito <oscar@oscarbenedito.com>
Date:   Fri, 24 Jul 2020 18:03:28 +0200

Change path of website backup script

Now folders are creating for each file to backup.

Diffstat:
Mwebsite-backup/website-backup.sh | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/website-backup/website-backup.sh b/website-backup/website-backup.sh @@ -41,7 +41,8 @@ error_message () { while IFS= read -r line do - OUTPUT="$BACKUP_PATH/$(date +"%Y-%m-%d")-${line#* }" + mkdir -p "$BACKUP_PATH/${line#* }" + OUTPUT="$BACKUP_PATH/${line#* }/$(date +"%Y-%m-%d")-${line#* }" URL="${line% *}" save || error_message done < "$URL_FILE"