{"id":29018217,"url":"https://github.com/carlossemeao/linux-storage-backup-lab","last_synced_at":"2026-05-16T08:12:00.479Z","repository":{"id":297312559,"uuid":"996321716","full_name":"CarlosSemeao/linux-storage-backup-lab","owner":"CarlosSemeao","description":"LVM, mount points, rsync backups, and restoration lab | Real-world Linux+ project","archived":false,"fork":false,"pushed_at":"2025-06-04T21:34:50.000Z","size":708,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-02T14:58:33.537Z","etag":null,"topics":["backup","comptia","fedora","file","linux","lvm","recovery","rsync","storage"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CarlosSemeao.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-04T19:28:10.000Z","updated_at":"2025-06-09T17:39:41.000Z","dependencies_parsed_at":"2025-06-05T02:53:07.522Z","dependency_job_id":"e4e0f7aa-a557-43a9-a5c9-e44a880aac87","html_url":"https://github.com/CarlosSemeao/linux-storage-backup-lab","commit_stats":null,"previous_names":["carlos-tech-ops/linux-storage-backup-lab","carlossemeao/linux-storage-backup-lab"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CarlosSemeao/linux-storage-backup-lab","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CarlosSemeao%2Flinux-storage-backup-lab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CarlosSemeao%2Flinux-storage-backup-lab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CarlosSemeao%2Flinux-storage-backup-lab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CarlosSemeao%2Flinux-storage-backup-lab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CarlosSemeao","download_url":"https://codeload.github.com/CarlosSemeao/linux-storage-backup-lab/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CarlosSemeao%2Flinux-storage-backup-lab/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274231182,"owners_count":25245675,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-08T02:00:09.813Z","response_time":121,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["backup","comptia","fedora","file","linux","lvm","recovery","rsync","storage"],"created_at":"2025-06-26T00:00:25.539Z","updated_at":"2026-04-24T22:35:00.207Z","avatar_url":"https://github.com/CarlosSemeao.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Linux Storage/Backup Lab\nLinux storage management, LVM, rsync and backup/restore.\n\n## Objective\n\nFull backup/recovery:\n\n- LVM\n- rsync incremental backups\n- Mount restore points\n- File deletion and recovery\n\n---\n\n## Skills\n\n- Create and manage loopback storage with dd and losetup\n- Provision LVM\n- Format and mount volumes\n- Perform safe backups and restores with rsync\n- Troubleshoot access issues and restore deleted data\n\n---\n\n## Environment\n\n| Component | Version / Tool              |\n|-----------|-----------------------------|\n| OS        | Fedora                      |\n| Shell     | Bash                        |\n| Key CLI   | losetup, lvm, rsync, mount, dd, df, lsblk |\n\n---\n\n## Tasks\n\n1. Create a 1 GB “disk” file\n```\nsudo dd if=/dev/zero of=/opt/backup-disk.img bs=1M count=1024\n```\n3. Attach it as /dev/loopX\n```\nsudo losetup -fP /opt/backup-disk.img\n```\n4. Create the Physical Volume (replace X with actual loop number)\n```\nsudo pvcreate /dev/loopX\n```\n5. Create VG \u0026 LV\n```\nsudo vgcreate backup_vg /dev/loopX\nsudo lvcreate -L 900M -n backup_lv backup_vg\n```\n6. Format \u0026 mount\n```\nsudo mkfs.ext4 /dev/backup_vg/backup_lv\nsudo mkdir -p /mnt/backup\nsudo mount /dev/backup_vg/backup_lv /mnt/backup\n```\n7. sudo mkdir -p /opt/projects\n```\necho \"Alpha Project\" | sudo tee /opt/projects/alpha.txt\necho \"Beta  Project\" | sudo tee /opt/projects/beta.txt\nsudo rsync -avh /opt/projects/ /mnt/backup/\nsudo find /opt/projects -type f -exec rm -f {} +\nsudo rsync -avh /mnt/backup/ /opt/projects/ | sudo tee outputs/restore-log.txt\n```\n---\n\n## Output\n\n| File                            | Description                                    |\n|---------------------------------|------------------------------------------------|\n| `outputs/restore-log.txt`       | Log captured from the `rsync` restore process  |\n\n---\n\n## Screenshots\n\n### Setup\n\n| Step | Description | Screenshot |\n|------|-------------|------------|\n| 1  | **Before Loopback Setup** – Disk layout before attaching the backup image | ![lsblk before](images/lsblk-before.png) |\n| 2  | **Loop Device Mounted** – Loopback disk appears after mounting with `losetup` | ![loop device mounted](images/lsblk-loop-mounted.png) |\n| 3  | **LVM Setup: PV Created** – Physical volume initialized with `pvcreate` | ![LVM Step 1](images/lvm-setup0.png) |\n| 4  | **LVM Setup: VG + LV Created** – Volume group and logical volume provisioned | ![LVM Step 2](images/lvm-setup1.png) |\n| 5  | **Filesystem \u0026 Mount** – Filesystem formatted and volume mounted to `/mnt/backup` | ![LVM Step 3](images/lvm-setup2.png) |\n| 6  | **Final Layout** – View of the mounted loopback volume using `lsblk` | ![LVM Step 4](images/lvm-setup3.png) |\n\n---\n\n### Backup\n\n| Phase | Description | Screenshot |\n|-------|-------------|------------|\n| Backup Complete | Files `alpha.txt` and `beta.txt` successfully backed up using `rsync` | ![Backup Success](images/rsync-backup-success.png) |\n| Simulated Failure | Files deleted from `/opt/projects` to simulate data loss | ![Simulated Data Loss](images/data-loss-simulated.png) |\n| Restore Log | Output of the restore process captured using `tee` | ![Restore Log Output](images/restore-log-output.png) |\n| Recovery Verified | Files restored from backup and visible in `/opt/projects` | ![Data Restored](images/data-restore-success.png) |\n\n---\n\n### Rsync Log\nOutput of the `rsync` command during the restore process captured using `tee`.\n\n![Rsync Restore Log Output](images/restore-log-output.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarlossemeao%2Flinux-storage-backup-lab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcarlossemeao%2Flinux-storage-backup-lab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarlossemeao%2Flinux-storage-backup-lab/lists"}