From 1b0b9fe0bb41b1af399b3635c998342ab8ef0c8d Mon Sep 17 00:00:00 2001 From: Ibrakhim Date: Mon, 25 May 2026 15:35:20 +0300 Subject: [PATCH 1/6] Add backup.sh script --- backup.sh | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 backup.sh diff --git a/backup.sh b/backup.sh new file mode 100644 index 0000000..5db956d --- /dev/null +++ b/backup.sh @@ -0,0 +1,2 @@ +echo 'Backup started' +echo 'Backup completed' From 9bb273b8bbf430a2767b59f0d9e7633a9b922320 Mon Sep 17 00:00:00 2001 From: Ibrakhim Date: Mon, 25 May 2026 15:41:01 +0300 Subject: [PATCH 2/6] Add comment to backup.sh --- backup.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/backup.sh b/backup.sh index 5db956d..974e9d4 100644 --- a/backup.sh +++ b/backup.sh @@ -1,2 +1,3 @@ echo 'Backup started' echo 'Backup completed' +# This script backs up important files From c1c50c237e1230e3deb5ecc4c7af08451001b580 Mon Sep 17 00:00:00 2001 From: Ibrakhim Date: Mon, 25 May 2026 15:41:38 +0300 Subject: [PATCH 3/6] Add buggy code with syntax error --- backup.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backup.sh b/backup.sh index 974e9d4..f9c2f85 100644 --- a/backup.sh +++ b/backup.sh @@ -1,3 +1,7 @@ echo 'Backup started' echo 'Backup completed' # This script backs up important files +echo 'Starting backup' +if [ -d /backup ] then + echo 'Directory exists' +fi From 723839867b8edde91821e0d747511dfbaa7eb4f4 Mon Sep 17 00:00:00 2001 From: Ibrakhim Date: Mon, 25 May 2026 15:44:43 +0300 Subject: [PATCH 4/6] Add disk space check --- backup.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/backup.sh b/backup.sh index f9c2f85..e2b961d 100644 --- a/backup.sh +++ b/backup.sh @@ -5,3 +5,4 @@ echo 'Starting backup' if [ -d /backup ] then echo 'Directory exists' fi +# New feature: check disk space From d519f5d43545aa2374d801711da6cc72774df412 Mon Sep 17 00:00:00 2001 From: Ibrakhim Date: Mon, 25 May 2026 15:44:44 +0300 Subject: [PATCH 5/6] Add df command --- backup.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/backup.sh b/backup.sh index e2b961d..911cbc3 100644 --- a/backup.sh +++ b/backup.sh @@ -6,3 +6,4 @@ if [ -d /backup ] then echo 'Directory exists' fi # New feature: check disk space +df -h From db1646255fe6c71aaab3d42929fd0d497bc1da5a Mon Sep 17 00:00:00 2001 From: Ibrakhim Date: Mon, 25 May 2026 15:46:11 +0300 Subject: [PATCH 6/6] Add df command --- backup.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/backup.sh b/backup.sh index 911cbc3..38b0e65 100644 --- a/backup.sh +++ b/backup.sh @@ -7,3 +7,4 @@ if [ -d /backup ] then fi # New feature: check disk space df -h +df -h