{"id":22330468,"url":"https://github.com/tuvimen/sunt","last_synced_at":"2026-05-15T21:11:01.724Z","repository":{"id":74846551,"uuid":"495292582","full_name":"TUVIMEN/sunt","owner":"TUVIMEN","description":"A bash script for backing up files","archived":false,"fork":false,"pushed_at":"2025-06-04T17:11:35.000Z","size":35,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-04T22:37:34.368Z","etag":null,"topics":["backup","bash"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TUVIMEN.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,"zenodo":null}},"created_at":"2022-05-23T06:56:28.000Z","updated_at":"2025-06-04T17:11:37.000Z","dependencies_parsed_at":"2023-12-30T10:26:34.157Z","dependency_job_id":"7abf34f5-c7a6-46e0-8029-0a3e4eb48d53","html_url":"https://github.com/TUVIMEN/sunt","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TUVIMEN/sunt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TUVIMEN%2Fsunt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TUVIMEN%2Fsunt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TUVIMEN%2Fsunt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TUVIMEN%2Fsunt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TUVIMEN","download_url":"https://codeload.github.com/TUVIMEN/sunt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TUVIMEN%2Fsunt/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270005591,"owners_count":24510939,"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-08-12T02:00:09.011Z","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","bash"],"created_at":"2024-12-04T04:06:57.765Z","updated_at":"2026-05-15T21:10:56.700Z","avatar_url":"https://github.com/TUVIMEN.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sunt\n\nA bash script for backing up files.\n\nMy reasoning behind this project: https://tuvimen.neocities.org/posts/secure-and-quick-backup-of-huge-amount-of-files-via-ssh\n\n## Installation\n\n```bash\ninstall -m 755 sunt /usr/bin\n```\n\n## Usage\n\nExample config of `~/.config/sunt`\n\n```bash\nSUNT_INDEX=\"/home/user3/index\"\nSUNT_ENCRYPT=\"openssl enc -e -aes-256-cbc -salt -pbkdf2 -iter 1000000 -md sha512 -in /dev/stdin -pass file/home/user3/pass -out /dev/stdout\"\nSUNT_DECRYPT=\"openssl enc -d -aes-256-cbc -salt -pbkdf2 -iter 1000000 -md sha512 -in /dev/stdin -pass file:/ome/user3/pass -out /dev/stdout\"\nSUNT_COMPRESS=\"xz -e9\"\nSUNT_DECOMPRESS=\"unxz\"\nSUNT_HASH=\"sha256sum\"\nSUNT_DEST=\"user1,ssh user1@192.168.1.104,/media/sdc1,/home/user3/d1,user2,ssh user2@192.168.1.105,/media/sdc2,/home/user3/d2\"\n```\n\nAdd files to index\n\n```bash\ncd /media/sdb1\nsunt a file/file1 file2\nsunt a -c file3\n```\n\nUpload files to remote\n\n```bash\nsunt u file2 file3\n```\n\nDelete files from index and on remote\n\n```bash\nsunt d -r file3\n```\n\nCopy index file to remote\n\n```bash\nsunt i\n```\n\nAdd and upload files\n\n```bash\nsunt au file4 file5\nsunt au -c file6/*.mp4\n```\n\nRestore files from remote\n\n```bash\nsunt r file3\nsunt r -f file2\n```\n\nShow index file\n\n```bash\nsunt l\n```\n\n## Wrapper\n\nHere's a command wrapper for `.bashrc` that when called with no arguments spawns `fzf` selection to restore files\n\n```bash\nsunt() {\n    if [ \"$#\" -eq 0 ]\n    then\n        . ~/.config/sunt\n        local destination path sel\n\n        mapfile -t -d, destination \u003c\u003c\u003c \"$SUNT_DEST\"\n        [ \"$((${#destination[@]}%4))\" -ne '0' ] \u0026\u0026 {\n            echo \"invalid SUNT_DEST\" \u003e\u00262\n            exit 1\n        }\n        path=\"${destination[3]//$'\\n'}\"\n        sel=\"$(cut -f2 \"$SUNT_INDEX\" | fzf -i --multi)\"\n        [ -z \"$sel\" ] \u0026\u0026 return\n        local IFS=$'\\n'\n        command sunt r $(sed \"s#^#$path/#\" \u003c\u003c\u003c \"$sel\")\n    else\n        command sunt \"$@\"\n    fi\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuvimen%2Fsunt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftuvimen%2Fsunt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuvimen%2Fsunt/lists"}