amazon-s3

Is it possible to sync a single file to s3?


I'd like to sync a single file from my filesystem to s3.

Is this possible or can only directories by synced?


Solution

  • Use include/exclude options for the sync-directory command:

    e.g. To sync just /var/local/path/filename.xyz to S3 use:

    s3 sync /var/local/path s3://bucket/path --exclude='*' --include='filename.xyz'