{"id":18248984,"url":"https://github.com/sajetek-developer/rustic-wrapper","last_synced_at":"2026-05-15T12:01:58.720Z","repository":{"id":209063430,"uuid":"718174421","full_name":"SaJeTek-Developer/rustic-wrapper","owner":"SaJeTek-Developer","description":"A bash script for Rhel systems built on rustic to automate backups.","archived":false,"fork":false,"pushed_at":"2025-03-10T13:54:31.000Z","size":225,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-08T19:55:53.446Z","etag":null,"topics":["backup","backup-utility","backups","backupscript","bash","rhel","rustic","server-backup","shell"],"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/SaJeTek-Developer.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}},"created_at":"2023-11-13T14:37:30.000Z","updated_at":"2025-03-10T13:54:35.000Z","dependencies_parsed_at":"2024-06-24T23:28:22.193Z","dependency_job_id":"09175ff3-12de-4676-bbbf-15875439a0b0","html_url":"https://github.com/SaJeTek-Developer/rustic-wrapper","commit_stats":null,"previous_names":["sajetek-developer/rustic-wrapper"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/SaJeTek-Developer/rustic-wrapper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaJeTek-Developer%2Frustic-wrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaJeTek-Developer%2Frustic-wrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaJeTek-Developer%2Frustic-wrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaJeTek-Developer%2Frustic-wrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SaJeTek-Developer","download_url":"https://codeload.github.com/SaJeTek-Developer/rustic-wrapper/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaJeTek-Developer%2Frustic-wrapper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274390459,"owners_count":25276406,"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-09T02:00:10.223Z","response_time":80,"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","backup-utility","backups","backupscript","bash","rhel","rustic","server-backup","shell"],"created_at":"2024-11-05T09:38:52.009Z","updated_at":"2026-05-15T12:01:53.671Z","avatar_url":"https://github.com/SaJeTek-Developer.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rustic-wrapper\nA bash script for Rhel systems using [Rustic](https://github.com/rustic-rs/rustic) to automate backups.\n- [x] Supports the backup of local, FTP and rclone locations\n- [x] Supports remote MySQL backups\n- [x] Automatically finds WordPress and Laravel Databases to backup within the path\n- [x] Can be modified to pull details from a mysql database instead of a csv\n- [x] Can be modified to automatically backup databases from other frameworks\n- [x] Sample provided\n- [ ] Does not support commas, please use a placeholder. default = \\_\\_comma__\n\n### Make sure to secure your backup list\n\u003e chmod 700 /root/rustic-wrapper.sh\\\n\u003e chmod 400 /root/file.csv\n\n### Settings\nModify default settings in file to your liking\\\ndemo mode - default: \"false\"\\\nlogging - default: \"true\"\\\nparallell downloads for FTP - default: 10\\\nmax job time - default: 6hrs\\\nrustic cache - default: \"false\"\\\ndefault level 1 directories to exclude in local backups: \"vmail backup backups cyberpanel clamav virtfs cPanelInstall htroot docker\"\n\n### Requirements\n**Atomatically installs**\\\nwget\\\nat\\\nrustic\\\nrclone\\\nlftp\\\njq\n_______________\n\n**Usage:**\\\n./rustic-wrapper.sh [backup | local_backup | delete | restore | snapshots | merge | info | prune]\n\n  [additional flags...]\\\n  **[global]**\n  ```\n  -r repo\t\t\t\t\t                        e.g. -r /home/backup | -r \"rclone:WASABI\"\n  -b bucket\trequired for rclone\t\t                e.g. -b backup_bucket\n  -x password     default is blank\t\t\t\te.g. -x \"some_password\"\n  ```\n  \n  **[backup]**\n  ```\n  -e:optional files_or_folders_to_exclude, allows glob            e.g. -e \"wp-content/cache wp-content/litespeed wp-content/backup/ *.zip\"\n  -k:optional number of days to keep\t\t\t        e.g.\t-k 90\n  -l:optional list_of_objects_to_backup\t\t\t        e.g. -l \"/home/backup_list.csv\"\n  -m:optional list_of_db_to_backup\t\t\t        e.g. -m /home/db_list.csv\n  -p path to backup\t\t\t\t\t        e.g. -p \"/home/back/me/up\"\n  -c:optional instant delete when pruning\n  -n:optional backup files newer than last snapshot time\n  ```\n  \n  **[local_backup]**\n  ```\n  -r:optional repo/backup path\n  -e:optional files_or_folders_to_exclude    e.g. -e \\\"wp-content/cache wp-content/litespeed wp-content/backup/ *.zip\\\"\n  -k:optional number of days to keep      e.g.\t-k 90\n  -c:optional instant delete when pruning\n  -p:optional level 1 directories to exclude, this replaces local_excluded_dirs\n  ```\n  \n  **[snapshots]**\n  ```\n  -i:optional snapshot to view\t\t\t                e.g.\t-i jsd5jsdj\n  ```\n  \n  \n  **[merge]**\n  ```\n  -i list_of_snapshot_ids_or_id\t\t\t                e.g.\t-i \"abcdefg hijk 156fsgsd\" | -i jsd5jsdj\n  -c:optional used with merge to remove ids that were merged      e.g. merge -i \"abcdefg hijklm\" -c\n  ```\n  \n  **[restore]**\n  ```\n  -p path to restore                            e.g. -p \"/home/back/me/up\"\n  -i snapshot to restore                        e.g.\t-i \"abcdefg hijk 156fsgsd\" | -i jsd5jsdj\n  -d:optional destination_to_restore            e.g. /home/restorepoint/\n  ```\n  \n  **[delete]**\n  ```\n  -i list_of_snapshot_ids_or_id\t\t\t        e.g.\t-i \"abcdefg hijk 156fsgsd\" | -i jsd5jsdj\n  -c:optional instant delete when pruning\n  ```\n  \n  **[info]**\n  \n  **[prune]**\n  ```\n  -c:optional instant delete when pruning\n  ```\n\n_______________\n\n## Example usage\nBefore running the script, update your settings within the file between the tags #MODIFY HERE and #END MODIFY HERE\n\u003e ./rustic-wrapper.sh backup -l /path/to/csv_file/file.csv\n\n\u003e ./rustic-wrapper.sh backup -r rclone:WASABI_DRIVE -b example.com -e \"*.zip *.gz backup cache /home/example/public_html/cache\" -k 120 -p /home/example/public_html/ -c -x \"MyPassword\"\n\nSpecify full paths to exclude that specific file or folder in excludes\ne.g. if you want to exclude /home/test/cache but backup all other cache folders specify: -e \"/home/test/cache backup *.zip\"\ne.g. if you want to exclude all cache directories specify: -e \"cache backup *.zip\"\n\n\n**Cron**\\\n#Generally used to backup offsite locations using ftp or preconfigured rclone configs\n\u003e 0 0 * * * /root/rustic-wrapper.sh backup -l /path/to/csv_file/file.csv\n\n#backup all directories in the /home/ directory to the default backup path\n\u003e 0 0 * * * /root/rustic-wrapper.sh local_backup\n\n#backup all directories (except listed) in the /home/ directory to the default backup path\n\u003e 0 0 * * * /root/rustic-wrapper.sh local_backup -p \"mysql test backup backups\"\n\n#backup all directories (except listed) in the /home/ directory to the repo path specified (can be used to backup to an NFS mounted path)\n\u003e 0 0 * * * /root/rustic-wrapper.sh local_backup -p \"mysql test backup backups\" -r /home/local-rustic-wrapper/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsajetek-developer%2Frustic-wrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsajetek-developer%2Frustic-wrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsajetek-developer%2Frustic-wrapper/lists"}