# s3cp

> Similar to rsync

Latest version **0.0.12** (published 2013-04-01) · BSD license · 0 weekly downloads

## Install

```sh
npm install s3cp
pnpm add s3cp
yarn add s3cp
bun add s3cp
```

Provides the command `s3cp`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.12 |
| Published | 2013-04-01 |
| First published | 2013-03-24 |
| Weekly downloads | 0 |
| License | BSD |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 15 |
| Known vulnerabilities | 0 (+3 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 3 |
| Maintainers | architectd |

## Links

- npm: https://www.npmjs.com/package/s3cp
- Repository: https://github.com/crcn/node-s3cp
- npm.io page: https://npm.io/package/s3cp

## Dependencies (15)

- [knox](https://npm.io/package/knox.md) 0.5.x
- [mime](https://npm.io/package/mime.md) 1.2.x
- [sift](https://npm.io/package/sift.md) 0.0.x
- [async](https://npm.io/package/async.md) 0.2.x
- [cstep](https://npm.io/package/cstep.md) 0.0.x
- [rmdir](https://npm.io/package/rmdir.md) 1.0.x
- [stepc](https://npm.io/package/stepc.md) 0.0.x
- [walkr](https://npm.io/package/walkr.md) 0.0.x
- [mkdirp](https://npm.io/package/mkdirp.md) 0.3.x
- [outcome](https://npm.io/package/outcome.md) 0.0.x
- [toarray](https://npm.io/package/toarray.md) 0.0.x
- [winston](https://npm.io/package/winston.md) 0.6.x
- [mimetype](https://npm.io/package/mimetype.md) 0.0.x
- [commander](https://npm.io/package/commander.md) 1.1.x
- [underscore](https://npm.io/package/underscore.md) 1.4.x

## Recent versions

- 0.0.12 (latest) — 2013-04-01
- 0.0.11 — 2013-03-31
- 0.0.10 — 2013-03-31
- 0.0.9 — 2013-03-27
- 0.0.8 — 2013-03-27
- 0.0.7 — 2013-03-27
- 0.0.6 — 2013-03-24
- 0.0.5 — 2013-03-24
- 0.0.4 — 2013-03-24
- 0.0.3 — 2013-03-24
- 0.0.2 — 2013-03-24
- 0.0.1 — 2013-03-24
- 0.0.0 — 2013-03-24

## README

### S3 file synchronization

Similar to rsync, or git. s3cp looks for the difference in remote files, and synchronizes them with either a `pull`, or `push`.

### Help

```
  Usage: s3cp [options] [command]

  Commands:

    pull [config]          downloading files from s3
    push [config]          upload files to s3
    clean-pull [config]    re-downloads files to s3

  Options:

    -h, --help             output usage information
    -c, --config <config>  s3cp config path
    -s, --skip <count>     skip first N files for upload
    -v --validate          validate the server files before uploading
```

Here's how you publish files:

```bash
s3cp publish ./files.json --config ./credentials.json
```

files.json:

```json
[
  {
    "path": "path/to/file",
    "name": "name-of-repo"
  },
  {
    "path": "another/path/to/file",
    "name": "name-of-repo2"
  },
]
```

credentials.json:

```json
{
  key: "AWS_KEY",
  secret: "AWS_SECRET",
  bucket: "AWS_BUCKET"
}
```

Whenever you change files, simply re-publish with the same command, and s3cp will only copy the files that have changed.

To pull files from s3cp, call:

```bash
s3cp pull ./files.json --config ./credentials.json
```

s3cp will synchronize the local files whenever the remote files change.

---
_Source: https://npm.io/package/s3cp · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
