In a single server environment, it is rather easy to create a transaction consistent backup.
Simplified:
You find (or force a specific point in time with no open transactions.
Freeze your server, take a snapshot and you are done.
Sharding is a type of database partitioning that separates very large databases into smaller, faster, more easily managed parts called data shards. The word shard means a small part of a whole.