Fake backup script to be used together with the tutorial.

This commit is contained in:
Roberto Abdelkader Martínez Pérez
2019-12-10 12:11:44 +01:00
parent bb4aa1a00f
commit 0848dc212c
+14
View File
@@ -0,0 +1,14 @@
#!/bin/bash
{
echo --------------------------------------------------------------------------------
echo "[$(date)] Starting backup procedure"
for i in $(seq 1 10)
do
echo "[$(date)] Backing up table ${i}..."
sleep .2
done
echo "[$(date)] Backup finished"
} >> /tmp/backup_db.log
echo 'Backup done!'