{"id":22959440,"url":"https://github.com/nikitaivanovv/backup_maker","last_synced_at":"2025-04-02T02:24:57.030Z","repository":{"id":106300947,"uuid":"398757928","full_name":"NikitaIvanovV/backup_maker","owner":"NikitaIvanovV","description":null,"archived":false,"fork":false,"pushed_at":"2021-10-17T17:12:12.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-07T17:29:10.500Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/NikitaIvanovV.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}},"created_at":"2021-08-22T09:09:43.000Z","updated_at":"2022-07-18T07:01:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"a5baf638-1d06-4505-b31d-1346c456d284","html_url":"https://github.com/NikitaIvanovV/backup_maker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NikitaIvanovV%2Fbackup_maker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NikitaIvanovV%2Fbackup_maker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NikitaIvanovV%2Fbackup_maker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NikitaIvanovV%2Fbackup_maker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NikitaIvanovV","download_url":"https://codeload.github.com/NikitaIvanovV/backup_maker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246742224,"owners_count":20826306,"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","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":[],"created_at":"2024-12-14T18:18:25.050Z","updated_at":"2025-04-02T02:24:57.021Z","avatar_url":"https://github.com/NikitaIvanovV.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# backup_maker\n\nA simple bash script that allows you to backup your data\n\n## Table of contents\n\n- [Installation](#installation)\n- [Usage](#usage)\n  - [List directories or files to backup](#list-directories-or-files-to-backup)\n    - [Example](#example)\n  - [Run script](#run-script)\n  - [Schedule backuping](#schedule-backuping)\n- [Configuring](#configuring)\n  - [Example](#example-1)\n\n## Installation\n\n```bash\ngit clone https://github.com/ViChyavIn/backup_maker \u0026\u0026 cd backup_maker\n```\n\n## Usage\n\n### List directories or files to backup\n\nCreate a file named `backup_paths_list.txt` in the backup_maker script directory:\n\n```bash\ntouch backup_paths_list.txt\n```\n\nUse the following syntax to add paths for backuping:\n\n```\n\u003cbackup name\u003e \u003cabsolute path\u003e\n```\n\nBackup name should contain only this set of characters: `A-Z`, `a-z`, `0-9`, `-`, `_`.\n\n#### Example\n\nbackup_paths_list.txt:\n\n```\nmy-photos /home/user/photos\nmy-project-database /home/user/some-project/database.db\n# You can comment like this\n```\n\n### Run script\n\nTo use the script, run `main.bash` file:\n\n```bash\n./main.bash\n```\n\nIt will create `backups/` folder in the script directory that will contain subfolders named the same way as your backups defined in `backup_paths_list.txt` file. Each subfolder will contain backups as compressed tar archives.\n\nFor example, running the script with [this backup list](#example) will produce this folder:\n\n```\nbackups\n├── my-photos\n│   └── my-photos_2021-08-22_10-10-28.tar.bz2\n└── my-project-database\n    └── my-project-database_2021-08-22_10-10-28.tar.bz2\n```\n\n### Schedule backuping\n\nUsually you don't run the script by yourself but use some another program that runs it every X hours to make sure you always have fresh backups. [Cron](https://en.wikipedia.org/wiki/Cron) is such a program, read [this answer](https://askubuntu.com/a/2369) for more info on how to schedule backuping.\n\n## Configuring \n\nCreate `settings.conf` in backup_maker script directory to alter some behavior.\n\n| Variable             | Default value | Description                                                                                                                                    |\n| -------------------- | ------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |\n| max_backups_to_store |               | Sets max amount of backups to store. If the amount of backups exceeds this value, the oldest backup is deleted. Empty means don't delete anything. |\n\n### Example\n\nsettings.conf:\n\n```conf\nmax_backups_to_store=10\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikitaivanovv%2Fbackup_maker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnikitaivanovv%2Fbackup_maker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikitaivanovv%2Fbackup_maker/lists"}