{"id":24233778,"url":"https://github.com/memes/s3backup","last_synced_at":"2025-08-20T08:11:30.497Z","repository":{"id":3132969,"uuid":"4161222","full_name":"memes/s3backup","owner":"memes","description":"Shell script wrapper for duplicity backup to Amazon S3; supports separate sign and encrypt keys","archived":false,"fork":false,"pushed_at":"2016-06-24T18:17:34.000Z","size":24,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-14T16:16:17.361Z","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":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/memes.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}},"created_at":"2012-04-27T18:32:24.000Z","updated_at":"2016-06-24T18:17:35.000Z","dependencies_parsed_at":"2022-09-10T21:13:11.077Z","dependency_job_id":null,"html_url":"https://github.com/memes/s3backup","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/memes%2Fs3backup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/memes%2Fs3backup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/memes%2Fs3backup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/memes%2Fs3backup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/memes","download_url":"https://codeload.github.com/memes/s3backup/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241853952,"owners_count":20031336,"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-01-14T16:01:42.626Z","updated_at":"2025-03-04T13:25:33.204Z","avatar_url":"https://github.com/memes.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"Automated backup to Amazon S3 using duplicity\n=============================================\n\ns3backup is a simple shell script designed to do one thing; backup\nyour Linux computer to an Amazon S3 bucket with GPG encryption. All\nthe heavy lifting is done by duplicity, with the script automating\ncommon options and making the process easier to use.\n\nRequirements\n------------\n1.  duplicity\n\n2.  env\n\n3.  a compression utility (defaults to bzip2)\n\n4.  find\n\n5.  readlink, basename, dirname\n\n6.  hostname\n\n7.  grep\n\n8.  Bourne-like shell (bash, dash, etc)\n\n9.  gnupg\n\n10. hostname\n\n11. date\n\n12. getfacl (optional)\n\n13. dpkg/debconf and/or yum depending on distribution in use\n\nQuick installation\n------------------\n1.  Download or clone s3backup.sh from [github][1]\n\n2.  Install in a folder accessible by root; default assumption is that\n    the folder /var/local/backups will be used\n\n3.  Create an rc file to provide AWS credentials, GnuPG keys and other\n    options in the same location as the `s3backup.sh`\n    script. Optionally, create an include list to control exactly \n    what gets backed up in the same directory as the\n    `s3backup.sh`. There are sample files in the `examples`\n    folder.\n\n    E.g. after configuration, assuming use of `/var/local/backups` as\n    a base directory, there would be three files:-\n    1. `/var/local/backups/s3backup.sh`: the backup script,\n    2. `/var/local/backups/s3backup.rc`: the configuration parameters\n    for backup, and\n    3. `/var/local/backups/include.list`: the duplicity include list;\n    see duplicity manual for format\n\n4. Create a cron entry to execute the backup script; I prefer to make\n   this send email so I see the results of a backup and get email if a\n   backup is still running.\n\nAdvanced installation\n---------------------\n\nBy default the script assumes that the configuration file is located\nin the same directory as `s3backup.sh`, and that a single base\ndirectory should be used for all temporary files, duplicity local\nfiles, etc. This is fine, but there may be a need to separate out temp\nfiles, or to use a separate directory for duplicity local cache. All\nparameters in the script are expressed as environment variables, so\nthey can be overridden on an ad-hoc basis via command line or more\npermanently using `s3backup.rc` file. As an example, my [configuration][2] I\noverride the default duplicity options (`$DUPLICITY_OPTS`) in\n`s3backup.rc` to include duplicity's support for asynchronous upload\nthat is still experimental.\n\n[1]: http://github.com/memes/s3backup \"s3backup git repository\"\n[2]: http://github.com/memes/s3backup/wiki/Matthew's-configuration \"Matthew's configuration\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmemes%2Fs3backup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmemes%2Fs3backup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmemes%2Fs3backup/lists"}