How to copy docs with attachments from one bucket to another?

I want to create an archive bucket with documents from my other bucket, which contains documents with image attachments, added VIA sync gateway api.

I know that i can move documents between buckets VIA n1ql queries, but what about attachments?

Do i need to use sync gateway rest api to add attachments to every n1ql copied document by hand?

@Nikolay_Nikolaev , Through sync gateway api you can add attachments, but not through SDK. If documents are already having attachments,I believe it should move attachments along with documents using n1ql queries. When you copy documents through n1ql to another bucket, is attachments are not getting copied over through n1ql?