{"id":48969733,"url":"https://github.com/postkevone/backupdistrotermux","last_synced_at":"2026-04-18T06:19:54.329Z","repository":{"id":181101637,"uuid":"262571934","full_name":"postkevone/backupdistrotermux","owner":"postkevone","description":"This is a guide on how to backup and restore any Termux distro without losing folders and files permissions","archived":false,"fork":false,"pushed_at":"2020-08-03T10:02:21.000Z","size":9,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-07-14T03:29:49.249Z","etag":null,"topics":["android","andronix","backup","distro","termux"],"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/postkevone.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}},"created_at":"2020-05-09T13:01:38.000Z","updated_at":"2023-07-14T03:29:50.942Z","dependencies_parsed_at":"2023-07-14T03:40:00.368Z","dependency_job_id":null,"html_url":"https://github.com/postkevone/backupdistrotermux","commit_stats":null,"previous_names":["postkevone/backupdistrotermux"],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/postkevone/backupdistrotermux","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postkevone%2Fbackupdistrotermux","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postkevone%2Fbackupdistrotermux/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postkevone%2Fbackupdistrotermux/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postkevone%2Fbackupdistrotermux/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/postkevone","download_url":"https://codeload.github.com/postkevone/backupdistrotermux/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postkevone%2Fbackupdistrotermux/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31958839,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"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":["android","andronix","backup","distro","termux"],"created_at":"2026-04-18T06:19:53.732Z","updated_at":"2026-04-18T06:19:54.311Z","avatar_url":"https://github.com/postkevone.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"This is a guide on how to backup and restore any Termux distro without losing folders and files permissions\n***\n**Youtube Tutorial**\n\n[![youtube tutorial](https://img.youtube.com/vi/3rHYsxcEr7k/0.jpg)](https://www.youtube.com/watch?v=3rHYsxcEr7k)\n***\n**Backup**\u003cbr/\u003e\n* Make sure your distro root folders (es. /dev, /proc) can be read by the owner\n* If not, change the permissions of the folders to (400)\n* Use the following command to backup your Termux \"home\" and \"usr\" folder\n\n(you can change your preferred destination for the backup instead of the sdcard root)\n```\ncd /data/data/com.termux/files\ntar --format=gnu -pzcf /sdcard/termux-backup.tar.gz home usr\n```\n***\n**Restore**\u003cbr/\u003e\n* Make sure to have storage permissions and the latest version of your Termux packages (supposing you have just installed Termux)\n```\ntermux-setup-storage\npkg update \u0026\u0026 pkg upgrade\n```\n* Restore the \"home\" folder with the following commands:\n```\ncd /data/data/com.termux/files\nrm -rf home\ntar --same-owner -pzxf /sdcard/termux-backup.tar.gz home\n```\n* Then restore the \"usr\" folder as well\n```\ncd /data/data/com.termux/files\ncp ./usr/bin/busybox ./tar\nrm -rf usr\nunset LD_PRELOAD\n./tar -zxf /sdcard/termux-backup.tar.gz usr\nexit\n```\n* You did it! You successfully restored your Termux distro!\n***\n* Termux official backup instructions (this guide doesn't mantain permissions): https://wiki.termux.com/wiki/Backing_up_Termux\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpostkevone%2Fbackupdistrotermux","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpostkevone%2Fbackupdistrotermux","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpostkevone%2Fbackupdistrotermux/lists"}