PHP: Syncing Data with Amazon S3
460
While syncing directories with the s3client PHP SDK works perfectly
$s3client->uploadDirectory('/local/directory', 'my-bucket');
I still need the s3cmd --delete-removed feature to remove the unmatched files that exist in the bucket and not in the source directory.
ref:http://blogs.aws.amazon.com/php/post/Tx2W9JAA7RXVOXA/Syncing-Data-with-Amazon-S3
Answer
Solution:
remove any 'left over' (--delete-removed) files