{"id":16532066,"url":"https://github.com/ei-grad/trinkup","last_synced_at":"2026-05-18T00:05:38.130Z","repository":{"id":66875122,"uuid":"143645611","full_name":"ei-grad/trinkup","owner":"ei-grad","description":"A hundred times to Sam they've said, Hard links save files from being dead. - But who will aid in their creation??? Crontab and man - strong foundation!","archived":false,"fork":false,"pushed_at":"2023-05-04T09:03:15.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-19T06:40:57.258Z","etag":null,"topics":["backup-script","backups","bash","system-administration"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ei-grad.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":"2018-08-05T20:32:17.000Z","updated_at":"2023-05-04T09:11:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"8532197f-d826-499b-bf17-7034ff3ad4ec","html_url":"https://github.com/ei-grad/trinkup","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ei-grad/trinkup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ei-grad%2Ftrinkup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ei-grad%2Ftrinkup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ei-grad%2Ftrinkup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ei-grad%2Ftrinkup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ei-grad","download_url":"https://codeload.github.com/ei-grad/trinkup/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ei-grad%2Ftrinkup/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33160168,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T22:39:12.733Z","status":"ssl_error","status_checked_at":"2026-05-17T22:39:10.741Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-script","backups","bash","system-administration"],"created_at":"2024-10-11T18:11:35.061Z","updated_at":"2026-05-18T00:05:38.113Z","avatar_url":"https://github.com/ei-grad.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"trinkup - TRivial INcremental bacKUP script\n===========================================\n\n```\n    Уж 200 раз твердили Сене:       A hundred times to Sam they've said,\n    Хардлинк спасет от удаленья!    Hard links save files from being dead.\n    А кто создать его поможет?      But who will aid in their creation?\n    Crontab и man, тупая рожа!      Crontab and man, strong foundation!\n\n    (c) linux.org.ru, no-dashi\n```\n\nIntroduction\n------------\n\nTrinkup is designed to be the simplest possible tool for creating incremental backups. It maintains the specified number of snapshots for a given rsync source, which can either be a local filesystem path or a remote path using rsync-over-SSH (e.g., `hostname:/path`).\n\nSnapshots are named using the current date and time in ISO format and stored in a specified base directory. Each source should have its own unique base directory. Each snapshot is a directory containing the backed-up files. To save space, unchanged files are stored as hard links between snapshots.\n\nPrerequisites\n-------------\n\nTo use trinkup, you need:\n\n- Bash shell\n- rsync\n\nInstallation\n------------\n\n1. Download the `trinkup` script.\n2. Place the script in a convenient location, such as `/usr/local/bin/`.\n3. Make the script executable by running `chmod +x /path/to/trinkup`.\n\nConfiguration\n-------------\n\nIf you plan to use rsync-over-SSH, make sure to set up SSH keys for passwordless authentication. Consult the [official SSH documentation](https://www.ssh.com/ssh/keygen/) for more information.\n\nUsage\n-----\n\n```\ntrinkup \u003crsync_source\u003e \u003cbase_directory\u003e \u003cnumber_of_backups\u003e [rsync_args]\n```\n\nExamples\n--------\n\n1. Daily local backup of the `/home` directory, retaining the last 7 days of backups:\n\n```\n5 0 * * * /usr/local/bin/trinkup /home /backups/home 7\n```\n\n2. Daily rsync-over-SSH backup, retaining the last 7 days of backups:\n\n```\n5 0 * * * /usr/local/bin/trinkup example.com:/home /backups/example.com/home 7\n```\n\nTroubleshooting\n---------------\n\nIf you encounter issues, check the following:\n\n- Ensure that rsync is installed and in your system's PATH.\n- Verify that the base directory exists and has the correct permissions.\n- Check the script's output for error messages or consult your system logs.\n\nFAQ\n---\n\n**Q: Why not just use rsync?**\n\nA: While rsync can create hard links on its own, this feature is not ideal for backups, as hard links only work within a single filesystem. Trinkup creates hard links from the latest backup directory, rather than the source, avoiding the need to cross filesystem boundaries. This makes Trinkup a more efficient solution for incremental backups.\n\nLicense\n-------\n\nTrinkup is licensed under the \"Do What The F*** You Want With It\" (DWTFYWWI) license. See the LICENSE file for more information.\n\nContribution\n------------\n\nIf you want to contribute to the project or report issues, please open an issue or submit a pull request on the project's GitHub page.\n\nContact Information\n-------------------\n\nFor questions or support related to the script, use Github Issues.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fei-grad%2Ftrinkup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fei-grad%2Ftrinkup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fei-grad%2Ftrinkup/lists"}