Sync
The DID Spaces SDK provides robust synchronization capabilities, allowing you to efficiently manage and maintain data consistency between your local file systems and your DID Spaces. These commands simplify the process of backing up, mirroring, and updating your data, ensuring that your DID Space always reflects your desired state.
Synchronization is crucial for managing dynamic content, collaborative projects, or simply ensuring your data is securely stored and accessible from your DID Space. The SDK offers both full folder synchronization and advanced incremental sync options to cater to various use cases.
For managing individual objects (files) rather than entire folders, refer to the Object commands.
How Synchronization Works#
At its core, synchronization involves comparing the state of a local folder with its corresponding representation in your DID Space and applying necessary changes to achieve consistency. This can be a one-way transfer (push or pull) or a more sophisticated incremental update.
Key Sync Operations#
The SDK categorizes synchronization into several specialized commands to give you fine-grained control over your data flow:
- Push: This operation allows you to upload local folder changes and new files to your DID Space. It's ideal for publishing content or backing up your local work. Learn more about this in the Push section.
- Pull: Use this command to download data from your DID Space to a local folder, updating your local content to match what's stored remotely. This is useful for restoring data or collaborating across multiple devices. Learn more about this in the Pull section.
- Incremental: For managing large datasets, incremental synchronization provides an efficient way to update only the changed or new parts of your data, significantly reducing transfer times and bandwidth usage. Learn more about this in the Incremental section.
Next Steps#
Now that you have an overview of the synchronization capabilities, dive deeper into specific operations:
- Push: Learn how to push your local changes to DID Spaces.
- Pull: Understand how to retrieve data from DID Spaces to your local environment.
- Incremental: Explore efficient incremental synchronization for large files and folders.