Catman...d::copy(3pm)

πŸ“¦
version 1.2025 Β· 4 versions
, in ubuntu resolute, ubuntu stonking

πŸ’– Catmandu::Cmd::copy β€” aka the Catman...d::copy(3pm) glow-up πŸ’–

okay bestie, welcome to the User Contributed Perl Documentation corner of the universe, where the manual page is literally called Catman...d::copy(3pm) and it does exactly one thing but does it flawlessly. no notes. πŸŽ€


✨ NAME ✨

Catmandu::Cmd::copy β€” copy items from one store to another πŸ’…

that's it. that's the whole vibe. you got a store, you got another store, and this bad boy is the glow-up pipeline between them. iconic behavior fr fr πŸ¦‹


🌸 EXAMPLES 🌸

okay so here's the general shape of it, the main character syntax:

catmandu copy <STORE> <OPTIONS> to <STORE> <OPTIONS>

see that lil <STORE> <OPTIONS> to <STORE> <OPTIONS>? that's the whole thing. store, then options, then the word to (yes, literally the word to, it's giving conversational), then another store, then more options. chef's kiss. 😌


πŸ“ the real-world serve

want it in action? here's a MongoDB-to-ElasticSearch situation and honestly? ate:

catmandu copy MongoDB --database_name items --bag book to \
              ElasticSearch --index_name items --bag book

look at that backslash. she's a continuation character, she lets you keep your command on multiple lines so your terminal doesn't do the awkward horizontal scroll thing. respect her. πŸ’œ

so what's happening here: items from MongoDB (with --database_name items and --bag book) get copied over to ElasticSearch (with --index_name items and --bag book). same data, new home, no cap. 🧚

ngl the <OPTIONS> in the synopsis are doing a LOT of heavy lifting β€” every store has its own lil set of flags, so check the store's own docs before you start guessing. πŸ”

πŸ¦‹ and if you forgot what flags a store takes

bestie. it's fine. we've all been there. just ask:

catmandu help store MongoDB
catmandu help store ElasticSearch

catmandu help store + the store name = the cheat codes. go forth and be literate about your options. πŸ‘‘


πŸ’€ one tiny warning tho

this page is short. like, suspiciously short. there's a NAME and there's EXAMPLES and then it just... ends. so if you were hoping for a full OPTIONS list here, the answer is that the options live with the stores, not with copy. that's the whole lore. don't @ me. πŸ™ˆ


🫢 SEE YA

that's the page!! written by the lovely folks over at User Contributed Perl Documentation, living in Catman...d::copy(3pm), shipping with perl v5.40.1 and dated 2026-01-24 β€” yeah, a future date, she's ahead of her time βœ¨πŸ’–

go copy some items. you got this. mwah. πŸ’…πŸŒΈ

πŸ“¦ where this page comes from