{"id":27180512,"url":"https://github.com/acaranta/backups-n-sync","last_synced_at":"2025-04-09T14:36:30.991Z","repository":{"id":172657558,"uuid":"648171875","full_name":"acaranta/backups-n-sync","owner":"acaranta","description":"Simple tar.gz creation + sync using rclone","archived":false,"fork":false,"pushed_at":"2025-03-18T15:37:41.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-18T16:41:37.739Z","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/acaranta.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":"2023-06-01T11:15:55.000Z","updated_at":"2025-03-18T15:37:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"0e1cdda0-61f3-44ed-bf19-6a1a62d8edeb","html_url":"https://github.com/acaranta/backups-n-sync","commit_stats":null,"previous_names":["acaranta/backups-n-sync"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acaranta%2Fbackups-n-sync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acaranta%2Fbackups-n-sync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acaranta%2Fbackups-n-sync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acaranta%2Fbackups-n-sync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/acaranta","download_url":"https://codeload.github.com/acaranta/backups-n-sync/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248055289,"owners_count":21040151,"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":"2025-04-09T14:36:30.535Z","updated_at":"2025-04-09T14:36:30.985Z","avatar_url":"https://github.com/acaranta.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Backup \u0026 Sync\n\nThis is a docker container developped for my backup need, not sure this can be useful to many people in the world lol:\nThe idea is to :\n* have a container that starts at a specific time every day `$WAKEUPTIME` (yes like cron, but hell I did it my way)\n* create a daily tar.gz of specific directories found in the mounted `/data` and listed in the `/bns/backup_vols.txt` (1 per line)\n* theses tar.gz willl be stored in the mounted `/backups` directory under `$HOSTID` subdir (if HOTSID is not set it will use the container hostname, therefore ... specify it lol)\n* it will only keep there a maximum of `MAXBKP` files (default is 7)\n* finally, using rclone (with a configuration mounted in `/config/rclone/rclone.conf`) it will upload the contents of `/backups/$HOSTID` to `$RCL_TARGET:$RCL_PREFIX/$HOSTID/$RCL_SUFFIX`\n\nConfigure rclone out of this container, and mount its configuration.\n\n# Compose example :\n```\nversion: '2.4'\nservices:\n  bkpnsync:\n    image: acaranta/backup_n_sync:latest\n    volumes:\n      - /srv/backupsconf/bns:/config/bns/:ro \n      - /srv/backupsconf/rclone/config/rclone:/config/rclone:ro\n      - /srv/backups:/backups\n      - /srv/dockervolumes:/data:ro\n    environment:\n      - SKIPFIRSTRUN=false\n      - WAKEUPTIME=09:20\n      - HOSTID=testhostID\n      - SRC_VOL_BASE=/data\n      - BKP_BASE_DIR=/backups\n      - MAXBKP=5\n      - RCL_TARGET=DropboxService\n      - RCL_PREFIX=Backups-test\n      - RCL_SUFFIX=dockervolumes\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facaranta%2Fbackups-n-sync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Facaranta%2Fbackups-n-sync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facaranta%2Fbackups-n-sync/lists"}