itcon-pty-au / typingmind-cloud-backup

This is a Typing mind extension to backup & restore Typingmind data to your AWS S3 bucket
https://itcon-pty-au.github.io/typingmind-cloud-backup/
17 stars 2 forks source link

export to S3 failed #4

Closed ZefanHu closed 12 hours ago

ZefanHu commented 1 day ago

I clear the S3 first, then I tested synchronizing smaller files and Backup succeeded, but I imported the entire history backup and it failed. My entire history is about 20 MB in size.

image

itcon-pty-au commented 1 day ago

@ZefanHu - Thanks for trying this out. How was this 20MB file created in the first place? Via this extension or via the original typingmind backup feature? Note that import will work only if the file was generated by this extension.

ZefanHu commented 1 day ago

@ZefanHu - Thanks for trying this out. How was this 20MB file created in the first place? Via this extension or via the original typingmind backup feature? Note that import will work only if the file was generated by this extension.

Thank you for your help! Just to clarify, this 20MB history file was exported using the “export” button on the Typingmind website. Does that mean it's currently impossible to back it up? Is there any way I could manually modify the format of the history file to make it work? I’d greatly appreciate any advice you could provide. Thanks again!

itcon-pty-au commented 1 day ago

Screenshot_20241114-020951

Once you configure the extension, click on the "Export to S3" button. This should create the full backup file in S3.

ZefanHu commented 23 hours ago

This should create the full backup file in S3.

Thank you! I successfully configured the extension, and the backup to S3 is working. However, the JSON file format backed up to S3 by the extension is different from the history file format exported from the Typingmind website. Does this mean that the history file exported from the website cannot be re-imported and backed up to S3 via the extension?

itcon-pty-au commented 19 hours ago

The extension automatically does the sync, so you need not manually import the backup each time.

However, if you need an ad-hoc import, use the "Import to S3" button in the extension configuration form to manually import the backup from S3.

Guess I should create a detailed document on how the extension works. Will do that soon.