Backup & Restore
Protecting and recovering your data
What backup options are available?
MyPink Party offers two backup strategies:
- Cloud Backup (S3) — Your data is automatically encrypted and uploaded to secure AWS cloud storage. This is always available and requires no setup beyond being logged in.
- Local Folder Backup — Your data is saved as an encrypted file to a folder you choose on your device. This uses the browser's File System Access API and is great for keeping an extra local copy.
You can use both strategies for maximum protection.
How does automatic backup work?
When enabled, auto-backup triggers whenever you make changes to your data (creating or editing customers, orders, products, etc.). Changes are batched with a short delay to avoid excessive backups. The system also triggers a backup when you switch to another tab or app.
Smart deduplication ensures that if nothing has changed since the last backup, no new backup is created — saving bandwidth and storage.
You can enable or disable auto-backup in Settings > Backup.
How do I create a manual backup?
Go to Settings > Backup and tap the "Backup Now" button. This immediately creates a full backup of your entire database. Use manual backup before making major changes or as a safety measure in addition to auto-backup.
How do I restore my data from a backup?
There are two ways to restore:
- Automatic prompt — When you log in on a new device (or after clearing data), the app detects that your local database is empty but a cloud backup exists. It shows a prompt with backup details (date, number of records) and lets you restore with one tap.
- Manual restore — Go to Settings > Backup and tap "Restore from Backup". The app will show you the available backup details and ask for confirmation before restoring.
Restoring replaces your entire local database with the backup. All data is encrypted with AES-256-GCM, and ownership is validated to prevent cross-user data contamination.
How does device-to-device sync work?
P2P (peer-to-peer) sync lets you transfer data directly between your devices in real time without going through the cloud. When two devices connect, they exchange all data and merge using last-write-wins — the most recent version of each record is kept.
This is ideal for:
- Quickly syncing between your phone and tablet
- Working offline and syncing when devices are near each other
- Transferring data instantly without waiting for cloud sync
P2P sync complements cloud backup — use both for the best experience.
How do I transfer all my data to a new device?
Device Transfer moves your entire encrypted database from one device to another using a direct peer-to-peer connection via WebRTC.
To transfer: 1. Open the QR sync feature on both devices 2. On the sending device, display your QR code 3. On the receiving device, scan the QR code 4. The devices connect directly and transfer your encrypted data
All data is encrypted with AES-256-GCM before transfer. Both devices must be signed in to the same account. Up to 5 devices can be registered per account.
Device Transfer differs from P2P Sync: Transfer is for setting up a new device, while P2P Sync keeps multiple active devices in sync.