{"id":15707679,"url":"https://github.com/thenets/backup","last_synced_at":"2025-11-08T17:30:37.244Z","repository":{"id":87614241,"uuid":"195216767","full_name":"thenets/backup","owner":"thenets","description":null,"archived":false,"fork":false,"pushed_at":"2019-10-26T22:13:18.000Z","size":867,"stargazers_count":0,"open_issues_count":3,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-14T21:46:55.634Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/thenets.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-04T09:59:32.000Z","updated_at":"2019-10-16T22:39:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"5b917704-fdc7-4586-a5af-fee8180cc65d","html_url":"https://github.com/thenets/backup","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thenets%2Fbackup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thenets%2Fbackup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thenets%2Fbackup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thenets%2Fbackup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thenets","download_url":"https://codeload.github.com/thenets/backup/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239558934,"owners_count":19658934,"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":[],"created_at":"2024-10-03T20:41:05.517Z","updated_at":"2025-11-08T17:30:37.203Z","avatar_url":"https://github.com/thenets.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# thenets backup\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fthenets%2Fbackup.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Fthenets%2Fbackup?ref=badge_shield)\n\n\n## Requirements\n\n- mysql-client\n- postgres-client\n- openssh-client\n- rsync\n- awk\n\n## Config files\n\n### Directory (SSH)\n\nThe current user must have access to the target server from SSH. Add the `key.pub` to the `authorized_keys` to allow the access.\n\n`my-app-content.dir.ini`\n\n```properties\n# Server origin dir\nSERVER_DIR=backup@1.2.3.4:/opt/app/uploads/\n\n# Target dir to put all backup files\nTARGET_DIR=/mnt/volume_backup\n\n# Delete files older than X days\nDELETE_OLDER_THAN_X_DAYS=5\n\n# Compress subdirs\n# 0 False; 1 True\nCOMPRESS_SUBDIR=1\n\n# Set compression level\n# 1 - low (fast)\n# 9 - high (slow)\nGZIP=-1\n```\n\n### MySQL\n\n`my-database.mysql.ini`\n\n```properties\n# MySQL Params\nMYSQL_HOST=mysql.example.com\nMYSQL_PORT=3306\nMYSQL_USER=backup\nMYSQL_PASS=+voD/QvMzv821s9uJsBs/PCtdflura4Q2C4gayfAHiA=\n\n# Target dir to put all backup files\nTARGET_DIR=/mnt/volume_backup\n\n# Delete files older than X days\nDELETE_OLDER_THAN_X_DAYS=20\n\n# Compress subdirs\n# 0 False; 1 True\nCOMPRESS_SUBDIR=1\n\n# Set compression level\n# 1 - low (fast)\n# 9 - high (slow)\nGZIP=-1\n```\n\n### PostgreSQL\n\n`my-database.postgres.ini`\n\n```properties\n# PostgreSQL Params\nPOSTGRES_HOST=postgres.example.com\nPOSTGRES_PORT=25060\nPOSTGRES_USER=backup\nPOSTGRES_PASS=LFDrtmkCwUYuLTCMwVjFmGIjKqBwOivxNyJkmRarihg=\n\n# Target dir to put all backup files\nTARGET_DIR=/mnt/volume_backup\n\n# Delete files older than X days\nDELETE_OLDER_THAN_X_DAYS=20\n\n# Compress subdirs\n# 0 False; 1 True\nCOMPRESS_SUBDIR=1\n\n# Set compression level\n# 1 - low (fast)\n# 9 - high (slow)\nGZIP=-1\n```\n\n\n\n\n\n## License\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fthenets%2Fbackup.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fthenets%2Fbackup?ref=badge_large)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthenets%2Fbackup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthenets%2Fbackup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthenets%2Fbackup/lists"}