Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added backups/backup_20260402_21:13:16.tar.gz
Binary file not shown.
30 changes: 30 additions & 0 deletions logs/app.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
[2026-04-02 20:58:30] unning backup.sh...
[2026-04-02 20:58:30] backup.sh completed successfully
[2026-04-02 20:58:52] Running all tasks...
[2026-04-02 20:58:52] Running file_manager.sh...
[2026-04-02 20:58:52] file_manager.sh completed successfully
[2026-04-02 20:58:52] Running system_check.sh...
[2026-04-02 20:58:52] system_check.sh completed successfully
[2026-04-02 20:58:52] Running backup.sh...
[2026-04-02 20:58:52] backup.sh completed successfully
[2026-04-02 20:58:52] Running process_monitor.sh...
[2026-04-02 20:58:52] process_monitor.sh completed successfully
[2026-04-02 20:58:52] Running user_info.sh...
[2026-04-02 20:59:28] user_info.sh completed successfully
[2026-04-02 20:59:28] All tasks completed
[2026-04-02 20:59:52] Exiting...
[2026-04-02 21:11:05] Exiting...
[2026-04-02 21:13:02] Running system_check.sh...
[2026-04-02 21:13:02] system_check.sh completed successfully
[2026-04-02 21:13:16] Running backup.sh...
[2026-04-02 21:13:16] backup.sh completed successfully
[2026-04-02 21:15:16] Exiting...
[2026-04-02 21:15:31] Running process_monitor.sh...
[2026-04-02 21:15:39] process_monitor.sh completed successfully
[2026-04-02 21:15:44] Running system_check.sh...
[2026-04-02 21:15:44] system_check.sh completed successfully
[2026-04-02 21:15:50] Running user_info.sh...
[2026-04-02 21:15:59] user_info.sh completed successfully
[2026-04-02 21:16:05] Running backup.sh...
[2026-04-02 21:16:05] backup.sh completed successfully
[2026-04-02 21:16:20] Exiting...
23 changes: 23 additions & 0 deletions logs/backup.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Error: No source directory provided
Usage: backup.sh <source_directory>
Backup created: ../backups/backup_2026-04-02_20-24-07.tar.gz
Cleaning old backups...
Old backups cleaned
Backup created: ../backups/backup_2026-04-02_20-30-27.tar.gz
Cleaning old backups...
Old backups cleaned
Backup created: ../backups/backup_20260402_20:31:55.tar.gz
Cleaning old backups...
Old backups cleaned
Backup created: ../backups/backup_20260402_20:58:30.tar.gz
Cleaning old backups...
Old backups cleaned
Backup created: ../backups/backup_20260402_20:58:52.tar.gz
Cleaning old backups...
Old backups cleaned
Backup created: ../backups/backup_20260402_21:13:16.tar.gz
Cleaning old backups...
Old backups cleaned
Backup created: ../backups/backup_20260402_21:16:05.tar.gz
Cleaning old backups...
Old backups cleaned
10 changes: 10 additions & 0 deletions logs/file_manager.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
File not found: -y
File deleted: test_doc.txt
File list:
total 24K
-rwxrwxrwx 1 rheed rheed 1007 Apr 2 20:31 backup.sh
-rwxrwxrwx 1 rheed rheed 1.4K Apr 1 23:07 file_manager.sh
-rwxrwxrwx 1 rheed rheed 708 Apr 2 20:43 process_monitor.sh
-rwxrwxrwx 1 rheed rheed 1.5K Apr 2 20:58 run_all.sh
-rwxrwxrwx 1 rheed rheed 1.2K Apr 1 22:49 system_check.sh
-rwxrwxrwx 1 rheed rheed 1.3K Apr 1 22:05 user_info.sh
53 changes: 53 additions & 0 deletions logs/process_monitor.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@

[2026-04-02 20:40:23] ===== Starting Process Monitor =====
[2026-04-02 20:40:23] nginx is running
[2026-04-02 20:40:23] sshd is stopped. Attempting restart...
[2026-04-02 20:40:23] Failed to restart sshd
[2026-04-02 20:40:23] docker is stopped. Attempting restart...
[2026-04-02 20:40:23] Failed to restart docker
[2026-04-02 20:40:23] ===== Process Monitor Completed =====
[2026-04-02 20:41:03] ===== Starting Process Monitor =====
[2026-04-02 20:41:03] nginx is stopped. Attempting restart...
[2026-04-02 20:41:03] Failed to restart nginx
[2026-04-02 20:41:03] sshd is stopped. Attempting restart...
[2026-04-02 20:41:03] Failed to restart sshd
[2026-04-02 20:41:03] docker is stopped. Attempting restart...
[2026-04-02 20:41:03] Failed to restart docker
[2026-04-02 20:41:03] ===== Process Monitor Completed =====
[2026-04-02 20:41:15] ===== Starting Process Monitor =====
[2026-04-02 20:41:15] nginx is stopped. Attempting restart...
[2026-04-02 20:41:16] nginx restarted successfully
[2026-04-02 20:41:16] sshd is stopped. Attempting restart...
[2026-04-02 20:41:16] Failed to restart sshd
[2026-04-02 20:41:16] docker is stopped. Attempting restart...
[2026-04-02 20:41:16] Failed to restart docker
[2026-04-02 20:41:16] ===== Process Monitor Completed =====
[2026-04-02 20:41:40] ===== Starting Process Monitor =====
[2026-04-02 20:41:40] nginx is running
[2026-04-02 20:41:40] sshd is stopped. Attempting restart...
[2026-04-02 20:41:40] Failed to restart sshd
[2026-04-02 20:41:40] docker is stopped. Attempting restart...
[2026-04-02 20:41:40] Failed to restart docker
[2026-04-02 20:41:40] ===== Process Monitor Completed =====
[2026-04-02 20:45:27] ===== Starting Process Monitor =====
[2026-04-02 20:45:27] nginx is stopped. Attempting restart...
[2026-04-02 20:45:27] nginx restarted successfully
[2026-04-02 20:45:27] sshd is stopped. Attempting restart...
[2026-04-02 20:45:28] Failed to restart sshd
[2026-04-02 20:45:28] docker is stopped. Attempting restart...
[2026-04-02 20:45:28] Failed to restart docker
[2026-04-02 20:45:28] ===== Process Monitor Completed =====
[2026-04-02 20:58:52] ===== Starting Process Monitor =====
[2026-04-02 20:58:52] nginx is running
[2026-04-02 20:58:52] sshd is stopped. Attempting restart...
[2026-04-02 20:58:52] Failed to restart sshd
[2026-04-02 20:58:52] docker is stopped. Attempting restart...
[2026-04-02 20:58:52] Failed to restart docker
[2026-04-02 20:58:52] ===== Process Monitor Completed =====
[2026-04-02 21:15:31] ===== Starting Process Monitor =====
[2026-04-02 21:15:31] nginx is running
[2026-04-02 21:15:31] sshd is stopped. Attempting restart...
[2026-04-02 21:15:39] Failed to restart sshd
[2026-04-02 21:15:39] docker is stopped. Attempting restart...
[2026-04-02 21:15:39] Failed to restart docker
[2026-04-02 21:15:39] ===== Process Monitor Completed =====
Loading