{"id":15056969,"url":"https://github.com/asphaltt/bpfbak","last_synced_at":"2026-01-02T00:31:49.347Z","repository":{"id":240527636,"uuid":"802874716","full_name":"Asphaltt/bpfbak","owner":"Asphaltt","description":"bpfbak is a tiny tool to backup bpf objects under bpffs. Apache 2.0 License","archived":false,"fork":false,"pushed_at":"2024-05-19T16:29:51.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-14T10:14:21.170Z","etag":null,"topics":["bpfbak","bpffs","ebpf"],"latest_commit_sha":null,"homepage":"","language":"Go","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/Asphaltt.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":"2024-05-19T14:04:33.000Z","updated_at":"2024-05-23T18:32:00.000Z","dependencies_parsed_at":"2024-05-19T15:28:13.553Z","dependency_job_id":"2793e59c-12ee-47a4-94ac-14d2d803ed03","html_url":"https://github.com/Asphaltt/bpfbak","commit_stats":null,"previous_names":["asphaltt/bpfbak"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Asphaltt%2Fbpfbak","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Asphaltt%2Fbpfbak/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Asphaltt%2Fbpfbak/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Asphaltt%2Fbpfbak/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Asphaltt","download_url":"https://codeload.github.com/Asphaltt/bpfbak/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243558478,"owners_count":20310574,"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":["bpfbak","bpffs","ebpf"],"created_at":"2024-09-24T21:59:26.046Z","updated_at":"2026-01-02T00:31:49.320Z","avatar_url":"https://github.com/Asphaltt.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!--\n Copyright 2024 Leon Hwang.\n SPDX-License-Identifier: Apache-2.0\n--\u003e\n\n# bpfbak: a tiny tool to backup bpf objects under bpffs\n\nCurrently, bpffs does not support `cp` pinned bpf objects. This tool is a workaround to backup pinned bpf objects under bpffs.\n\n## Usage\n\n`bpfbak` can be used as a library:\n\n```shell\n    opts := bpfbak.BackupOpts{\n        Src:            rootFlags.src,\n        UnpinSrc:       rootFlags.srcUnpin,\n        Dst:            rootFlags.dst,\n        AutoMountBpffs: rootFlags.autoMount,\n        BpffsPath:      rootFlags.mountBpffs,\n    }\n    err := bpfbak.Backup(opts)\n    if err != nil {\n        log.Fatalf(\"Failed to backup bpf object: %v\", err)\n    }\n```\n\nOr as a command line tool:\n\n```shell\n$ ./bpfbak -h\nbpfbak is a tool to backup eBPF objects\n\nUsage:\n  bpfbak [flags]\n\nFlags:\n      --auto-mount           automatically mount bpffs at the destination directory or --mount-bpffs\n  -d, --dst string           destination filepath to backup the bpf object\n  -h, --help                 help for bpfbak\n      --mount-bpffs string   path to the directory where bpffs is mounted\n  -s, --src string           source bpf object to be backed up\n      --unpin-src            unpin the source bpf object after backing up\n```\n\n## License\n\nLicensed under the Apache License, Version 2.0.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasphaltt%2Fbpfbak","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fasphaltt%2Fbpfbak","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasphaltt%2Fbpfbak/lists"}