{"id":26544114,"url":"https://github.com/hmerritt/backup-script","last_synced_at":"2025-03-22T03:17:23.567Z","repository":{"id":110878301,"uuid":"252888219","full_name":"hmerritt/backup-script","owner":"hmerritt","description":"A simple script that compresses files/folders and moves them to a backup location","archived":false,"fork":false,"pushed_at":"2023-10-28T18:38:36.000Z","size":64,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-10-28T19:32:36.714Z","etag":null,"topics":["automation","backup","bash-script","cli","compresses-files","gzip","pigz"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hmerritt.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}},"created_at":"2020-04-04T02:14:03.000Z","updated_at":"2023-09-05T19:49:22.000Z","dependencies_parsed_at":"2023-07-21T14:17:13.339Z","dependency_job_id":"a88bfc79-08df-4d8f-b063-d005d7803de0","html_url":"https://github.com/hmerritt/backup-script","commit_stats":null,"previous_names":[],"tags_count":12,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmerritt%2Fbackup-script","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmerritt%2Fbackup-script/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmerritt%2Fbackup-script/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmerritt%2Fbackup-script/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hmerritt","download_url":"https://codeload.github.com/hmerritt/backup-script/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244898427,"owners_count":20528342,"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":["automation","backup","bash-script","cli","compresses-files","gzip","pigz"],"created_at":"2025-03-22T03:17:23.044Z","updated_at":"2025-03-22T03:17:23.553Z","avatar_url":"https://github.com/hmerritt.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Backup.sh\n\n[![Build Status](https://travis-ci.org/hmerritt/backup-script.svg?branch=master)](https://travis-ci.org/hmerritt/backup-script)\n\nA simple script that compresses files/folders and moves them to a backup location\n\n\n\n\n## Getting Started\n\n\n### Install Dependencies\nInstall script dependencies via `install` argument.\n\n```bash\n$ sudo ./backup.sh install\n```\n\n#### Bash on Windows\nThanks to `WSL`, you can run bash scripts on windows!\n\n- [Enable WSL (Windows Subsystem for Linux)](https://docs.microsoft.com/en-us/windows/wsl/install-win10)\n\n\n### Config file\n#### Create config\nIn order to add backups, you need to create a separate config file.\n```bash\n$ ./backup.sh setup\n```\n\n#### Load config\nYou can load the config file by adding its path after `backup`: `backup \u003cpath-to-config\u003e`\n```bash\n$ ./backup.sh \u003cpath-to-config\u003e\n```\n\u003e You can have as many config files as you like (this could be used to run different backups)\n\n\n\n\n## Usage\n\n```bash\n$ ./backup.sh \u003cpath-to-config\u003e\n```\n\n### Add files/folders to backup\n\n- Open the config file (`backup-config.sh`) and find the *`ENTER FOLDERS TO BACKUP HERE`* text\n- Add a file/folder by following the syntax guide below\n\n```bash\n# ENTER FOLDERS TO BACKUP HERE\n##############################\n# backup \"name-of-folder\" \"/directory-of-parent-folder/\" \"/directory-of-parent-backup-folder/\"\n# backup \"profile-images\" \"/my/images/\" \"/my/backup/google-drive/images/\"\n\nbackup \"name of file/folder\" \"full path to folder\" \"full path to backup location\"\n\n\n# Lets try a more real example\n\n# We are backing up a folder called \"music\" that exists in our \"documents\" folder\n# This is then packaged up and moved to the \"backup\" directory\n\nbackup \"music\" \"/home/user/documents/\" \"/home/user/backup/documents/\"\n\n# Original     \"/home/user/documents/music/\"\n# Backed-up                            \"/home/user/backup/documents/music.tar.gz\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhmerritt%2Fbackup-script","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhmerritt%2Fbackup-script","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhmerritt%2Fbackup-script/lists"}