{"id":29195473,"url":"https://github.com/foiovituh/bakpak","last_synced_at":"2026-04-24T12:07:24.422Z","repository":{"id":301899829,"uuid":"1010154278","full_name":"foiovituh/bakpak","owner":"foiovituh","description":"Ridiculously simple Bash script to automate folder backups 💾","archived":false,"fork":false,"pushed_at":"2025-07-08T22:36:54.000Z","size":27,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-08T23:33:52.936Z","etag":null,"topics":["automatic-backups","backup","backup-scheduler","backup-script","backup-tool","backup-utility","bash-script","cli-script","compress-files","cron","crontab","shell-script","snapshot","targz"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/foiovituh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-28T13:16:12.000Z","updated_at":"2025-07-08T22:36:56.000Z","dependencies_parsed_at":"2025-06-29T14:34:00.659Z","dependency_job_id":null,"html_url":"https://github.com/foiovituh/bakpak","commit_stats":null,"previous_names":["foiovituh/bakpak"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/foiovituh/bakpak","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foiovituh%2Fbakpak","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foiovituh%2Fbakpak/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foiovituh%2Fbakpak/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foiovituh%2Fbakpak/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/foiovituh","download_url":"https://codeload.github.com/foiovituh/bakpak/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foiovituh%2Fbakpak/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32222537,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T10:26:35.452Z","status":"ssl_error","status_checked_at":"2026-04-24T10:25:27.643Z","response_time":64,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["automatic-backups","backup","backup-scheduler","backup-script","backup-tool","backup-utility","bash-script","cli-script","compress-files","cron","crontab","shell-script","snapshot","targz"],"created_at":"2025-07-02T05:04:31.866Z","updated_at":"2026-04-24T12:07:24.416Z","avatar_url":"https://github.com/foiovituh.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 💾 BakPak\n![GitHub License](https://img.shields.io/github/license/foiovituh/bakpak)\n![GitHub Release](https://img.shields.io/github/v/release/foiovituh/bakpak)\n\n\u003e 🧠 A lightweight Bash script for timestamped directory backups — easy to automate with cron.\n\n![Image](https://github.com/user-attachments/assets/dc80cff7-71da-46af-9371-8802f7f191b3)\n\n## 📦 Installation\n```bash\ngit clone https://github.com/foiovituh/bakpak.git\ncd bakpak\nchmod +x bakpak.sh\nsudo ln -s \"$PWD/bakpak.sh\" /usr/local/bin/bakpak\n```\n\n## 🚀 Usage\n### Required:\n```bash\n-f \u003cpath\u003e    Directory to back up (must be readable)\n-t \u003cpath\u003e    Directory to store the compressed archive (must be writable)\n```\n\n### Optional:\n```bash\n-v           Show script version\n-h           Show a help message\n-u           Uncompressed mode - create a .tar without gzip compression\n-d           Dry-run mode — no backups will be created, only displayed\n-c \u003cexpr\u003e    Schedule backup as a cron job using the specified cron expression\n```\n\n### Examples:\n\n- Basic backup (compressed):\n```bash\nbakpak -f ~/Documents -t /mnt/docs_backup\n```\n\n- Dry-run (no files created):\n```bash\nbakpak -f ~/Tests -t /mnt/backup_simulations -d\n```\n\n- Cron job (1st day of month at 17:00):\n```bash\nbakpak -f /home/user/folder -t /mnt/backups -c \"0 17 1 * *\"\n```\n\n- Uncompressed backup with custom name:\n```bash\nbakpak -f ~/projects/president -t /mnt/d/band -p uncompressed_site_project -u\n```\n\n## ⏰ Cron Scheduling\nUse the `-c` option with a valid [cron expression](https://crontab.guru) (e.g., `0 17 1 * *`) to schedule automatic backups.\n\nMake sure both `-f` (from) and `-t` (to) arguments use **absolute paths** (starting with `/`) so cron runs correctly.\n\n## 🔍 Logs\nAll backup activity is automatically logged:\n\n| Type       | Path                                      |\n|------------|-------------------------------------------|\n| ✅ Success | `~/.bakpak/logs/successes.log`            |\n| ❌ Error   | `~/.bakpak/logs/errors.log`               |\n\n## ⭐ Support the Project\nIf you like this project or find it useful, please give it a star! It helps with visibility and motivates continued development.\n\n## 📄 License\nDistributed under the MIT License. See [`LICENSE`](LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoiovituh%2Fbakpak","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffoiovituh%2Fbakpak","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoiovituh%2Fbakpak/lists"}