{"id":20895028,"url":"https://github.com/upplication/amazons3-files-copier","last_synced_at":"2026-04-20T08:33:32.726Z","repository":{"id":13876709,"uuid":"16574734","full_name":"Upplication/amazons3-files-copier","owner":"Upplication","description":"Node.js module to copy a group of files stored in a bucket or path in AmazonS3 to another bucket or path","archived":false,"fork":false,"pushed_at":"2014-11-19T11:50:36.000Z","size":166,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-11T11:39:04.798Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Upplication.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":"2014-02-06T09:46:06.000Z","updated_at":"2014-11-19T11:51:29.000Z","dependencies_parsed_at":"2022-09-03T07:01:54.211Z","dependency_job_id":null,"html_url":"https://github.com/Upplication/amazons3-files-copier","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/Upplication%2Famazons3-files-copier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Upplication%2Famazons3-files-copier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Upplication%2Famazons3-files-copier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Upplication%2Famazons3-files-copier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Upplication","download_url":"https://codeload.github.com/Upplication/amazons3-files-copier/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243279393,"owners_count":20265795,"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-11-18T10:24:30.630Z","updated_at":"2025-12-25T08:20:41.782Z","avatar_url":"https://github.com/Upplication.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"amazons3-files-copier\n=====================\n\nProcess to copy a group of files stored in a bucket or path in AmazonS3 to another bucket or path and optionally backup the contents of the destination path or bucket to another path or bucket.\n\n\n### Copy method\n\n```js\n\n\t@param {String|Object} amazonCredentials Two ways:\n\t\t1. Path to the file where credentials of amazon are stored (Structure example in file 'sample-amazon.json') \n\t\t2. Object with credentials (Ex.:\n\t\t\t{\n\t\t\t\t  accessKeyId: 'akid',//required\n\t\t\t\t  secretAccessKey: 'secret', //required\n\t\t\t\t  sessionToken: 'session', //optional\n\t\t\t\t  region: 'region' //optional\n\t\t\t}\n\t\n\t\n\t\n\t@param {Object} options. ex.:\n\t{\n\t\t //required\n\t\t from:{\n\t\t\t BUCKET: 'bucketFrom',  //required {String}\n\t\t\t path: 'pathFrom'  //optional {String}\n\t\t },\n\t\t //required\n\t\t to:{\n\t\t\t BUCKET: 'bucketTo', //required {String}\n\t\t\t path: 'pathTo'  //optional {String}\n\t\t },\n\t\t //optional\n\t\t backup_to:{\n\t\t\t BUCKET: 'bucketBackup', //required {String}\n\t\t\t path: 'pathBackup'  //optional {String}\n\t\t },\n\t\t debug: true //optional {Boolean} Print log of each file\n\t}\n\t\n\t@returns {Q Promise} \n\n```\n#### Example \n\n```js\n\tvar amazonCopier = require('amazons3-files-copier'),\n\t\t$AMAZON_CREDENTIALS_FILE_PATH = './amazon.json';\n\t\n\tamazonCopier.copy($AMAZON_CREDENTIALS_FILE_PATH, {\n\t        from:{\n\t            BUCKET: 'templater',\n\t            path: 'PRE/'\n\t        },\n\t        to:{\n\t            BUCKET: 'templater',\n\t            path: 'PRO/'\n\t        },\n\t        backup_to:{\n\t            BUCKET: 'templater-backup',\n\t            path: 'PRO/'\n\t        },\n\t        debug: false\n\t    })\n\t.then(function () {\n\t    console.log('OK');\n\t}, function (err) {\n\t    console.log('Error: ' + err);\n\t});\n```\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fupplication%2Famazons3-files-copier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fupplication%2Famazons3-files-copier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fupplication%2Famazons3-files-copier/lists"}