tachiyomi icon indicating copy to clipboard operation
tachiyomi copied to clipboard

Sync Between Devices using Gdrive/Dropbox Backup

Open alonjacovi opened this issue 6 years ago • 37 comments

I'd love to have a feature that makes it possible to carry the same library with read/unread status and categories among different devices. This would theoretically involve saving the Json backup to a connected Dropbox or Google Drive account for every change, as well as restore from the Json backup for every sync (when pressing the sync button or during the configured periodic syncs). Presumably the Json will be saved to the root of the Dropbox/Gdrive so there won't be any consistency issues.

Conflicts where both the backup and local states were changed before a sync/restore can be solved by prompting the user to choose the local or cloud state

alonjacovi avatar Jul 26 '17 22:07 alonjacovi

Duplicate: #715 #502 #383 Although all of them were closed for requesting MAL Sync and were told that if sync ever happens, it'd be something like GDrive, maybe one issue should stay open for users to find and subscribe to.

j2ghz avatar Jul 26 '17 22:07 j2ghz

I second the feature request! Doesn't need anything Fancy, since we already have automatic local backups. Just upload the latest with a common filename, and save the timestamp. The periodically check for changes in the uploaded files timestamp and in case it differs, download and restore.

Tha restoration could also be down only during the app launch, or when it searches for manga updates.

If anything goes wrong we have the local backups (set it to keep the latest X files for assurance).

ptoump avatar Sep 23 '17 14:09 ptoump

I hope this is a given, but just to make sure, support for non-3rd party cloud solutions (owncloud/nextcloud/etc) should be on this list, as well.

ghost avatar Mar 10 '18 18:03 ghost

@mishugashu well I dont think that this is still needed, cause 1146 will be much better.

Sparh4wk avatar Mar 10 '18 19:03 Sparh4wk

Have someone tried/begun to implement this? This feature would truly be awesome to have!

kakardo avatar Jun 25 '20 13:06 kakardo

Is there any progress for this feature implantation? I would love to see this feature. Few days ago my device bricked and I lost all data including Tachiyomi Backups, I had to spend hours to organize everything again. If it had cloud backup this could be a different story.

ehsan18t avatar Dec 14 '20 22:12 ehsan18t

There are third party apps on Play Store such as Autosync for Google Drive, you can use that to sync your backup folder in the meantime.

joseph619 avatar Dec 14 '20 22:12 joseph619

I think users are really needing this feature. Not MAL, just GDrive or something automatable would be awesome.

jacfalcon0 avatar Jan 30 '21 08:01 jacfalcon0

Would it be possible to implement something similar to what cubari.moe does with remotestorage? There are hosted solutions for users like 5apps already, and users would be free to point them to self-hosted solutions if they so wish to. The development pace of the spec may be difficult to adhere to though, for the Versioning requirement.

Though I agree auto backup with Autosync app is a great workaround in the mean time.

akymanau avatar Jun 28 '21 10:06 akymanau

Would it be possible to implement something similar to what cubari.moe does with remotestorage? There are hosted solutions for users like 5apps already, and users would be free to point them to self-hosted solutions if they so wish to. The development pace of the spec may be difficult to adhere to though, for the Versioning requirement.

Though I agree auto backup with Autosync app is a great workaround in the mean time.

Sounds awesome. I'd be happy to test it if it's implemented.

ahmubashshir avatar Jun 28 '21 11:06 ahmubashshir

One Interesting workaround to this could be to use the API for google play games cloud saving. Yeah this isn't a game, but this functionality would be a good fit for the goal of automatic cloud backups/restoring and multi-device syncing. https://developers.google.com/games/services/android/savedgames

EternalBlueFlame avatar Aug 02 '21 02:08 EternalBlueFlame

As this is a FOSS project, that isn't a option since the API for that is proprietary. We'd have to use a REST API instead

loocool2 avatar Aug 02 '21 02:08 loocool2

I would love to see this feature as it will be proved very helpful for the users. Until then we have services related to cloud backup. That will be proved equally effective. please give it a try at least once.

ishika3030 avatar Aug 24 '21 09:08 ishika3030

I wish pcloud and onedrive also included as well.

dtantono avatar Sep 30 '21 15:09 dtantono

Has anybody managed to come up with a temporary solution for tachiyomi cross device sync in the meantime? Exporting/importing the library is pretty rough for minor updates.

felo1 avatar Nov 02 '21 17:11 felo1

Has anybody managed to come up with a temporary solution for tachiyomi cross device sync in the meantime? Exporting/importing the library is pretty rough for minor updates.

I just make tachiyomi auto backup every 6 hours, and use Autosync for Google Drive that watch file changes and upload it to GDrive

fmiqbal avatar Nov 02 '21 17:11 fmiqbal

I just make tachiyomi auto backup every 6 hours, and use Autosync for Google Drive that watch file changes and upload it to GDrive

This worked perfectly, thank you!

felo1 avatar Nov 02 '21 17:11 felo1

@fmiqbal I know tachiyomi have local backup by tap more on the left side -> settings -> backup & restore. But, I cannot see autosync for Google Drive. Where?

dtantono avatar Nov 03 '21 02:11 dtantono

@fmiqbal I know tachiyomi have local backup by tap more on the left side -> settings -> backup & restore. But, I cannot see autosync for Google Drive. Where?

It's an app on the play store. I'm curious if there's a way to change the read chapter location and have that auto sync between device using said app. It'd be great as an alternative to the built-in sync options.

Redn2000 avatar Nov 03 '21 02:11 Redn2000

I think we only need to allow saving and reading configs to a user folder, syncing the data is the user's work, e.g. use Syncthing. Much easier to implement and no external API required.

hoang-himself avatar Dec 14 '21 04:12 hoang-himself

I'd prefer remotestorage(also used by cubari.moe) Mubashshir

On Mon, Dec 13 2021 at 08:48:27 PM -0800, Hoàng @.***> wrote:

I think we only need to allow saving and reading configs to a user folder, syncing the data is the user's work, e.g. use Syncthing Much easier to implement and no online API required

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/tachiyomiorg/tachiyomi/issues/912#issuecomment-993155295, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF5WM3XVKXLSM3GJ7P7R4S3UQ3EBXANCNFSM4DUSGLOA. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

ahmubashshir avatar Dec 14 '21 04:12 ahmubashshir

may I suggest another approach, afaik, tachiyomi can update tracker data on library update, and tachiyomi can mark as read chapter as we read them, how if on library update, the chapter that have been read on tracker, also marked as read.

well, given this only works after initial backup/restore, and if it has tracker associated with it, and also cant sync new manga that added to library

fmiqbal avatar Dec 29 '21 10:12 fmiqbal

Any chances of this ever getting implemented?

BhaturaGuy avatar Feb 18 '22 11:02 BhaturaGuy

I would be interested in implementing a simple version of this if there's a potential for it to be merged.

Current idea would be to have a configuration screen where a user can select the types of data to sync across devices, then a screen to configure an external store to send data to.

I'd just be implementing support for S3-compatible blob storage to start, but at the very least that would give a framework for additional services to integrate with going forward.

If there's interest for this then let me know and I'll start an implementation.

deez-slimes avatar Mar 05 '22 04:03 deez-slimes

Feel free to take a stab at it.

arkon avatar Mar 05 '22 14:03 arkon

Feel free to take a stab at it.

Sounds good, I've made a fork. I'll try and get a proof of concept out within a week or two.

deez-slimes avatar Mar 05 '22 21:03 deez-slimes

I think we only need to allow saving and reading configs to a user folder, syncing the data is the user's work, e.g. use Syncthing. Much easier to implement and no external API required.

Cloud backup's a nice addition, and last time I tried to backup to GDrive from my phone it wasn't that easy. Most (3rd party) apps had at least a free and paid version, and they're yet another background service to run, while Tachiyomi would only do it after a backup.

Besides, Google Drive's the default service, especially with Tachiyomi being android-exclusive. Many apps need Google/Play Games access and also backup on it, so pretty much every phone should benefit from this feature. Unlike adding sync for Dropbox/MEGA or whatever.

hyoretsu avatar May 22 '22 22:05 hyoretsu

On Sun, May 22 2022 at 03:15:31 PM -0700, Aran Leite @.***> wrote:

Besides, Google Drive's the default service, especially when Tachiyomi's android-exclusive

But, it'll have to depend on google-service-framework which might be undesirable, considering that tachiyomi is not available on google play store.

Moreover, google drive is centralized, remember what happened to facebook when they BGP servers were misconfigured? something like that can happen to google too... I'd prefer remotestoragehttps://remotestorage.io for that, it's used by guya.moe and cubari, you can self-host it too.

Mubashshir

ahmubashshir avatar May 23 '22 06:05 ahmubashshir

I think we only need to allow saving and reading configs to a user folder, syncing the data is the user's work, e.g. use Syncthing. Much easier to implement and no external API required.

Cloud backup's a nice addition, and last time I tried to backup to GDrive from my phone it wasn't that easy. Most (3rd party) apps had at least a free and paid version, and they're yet another background service to run, while Tachiyomi would only do it after a backup.

Besides, Google Drive's the default service, especially with Tachiyomi being android-exclusive. Many apps need Google/Play Games access and also backup on it, so pretty much every phone should benefit from this feature. Unlike adding sync for Dropbox/MEGA or whatever.

monopoly is bad.

dtantono avatar May 23 '22 06:05 dtantono

The ideal solution imho would be one that does not require additional software to sync the config files, and does not require self-hosting since most people do not/can not self-host things. I feel that google drive would be the best start as the great majority of android user has alreasy an account, so it will require the least effort to set up for the greatest number of people. That said, once the code to save the userfile and load changes from it without restarting tachiyomi is in place, it might also be easier to add alternatives to gdrive for people (like me too) who do self-host or have beef with google and want to use something else instead.

L00maca avatar May 23 '22 08:05 L00maca