Suwayomi / docker-tachidesk

Run Suwayomi-Server in a docker container
Mozilla Public License 2.0
224 stars 56 forks source link

[feature request] persisting data folder with rclone sync #1

Closed pseudokawaii closed 2 years ago

pseudokawaii commented 2 years ago

It would be a great feature to implement since data cannot be persisted in PaaS with ephemeral file system. Like Heroku and Railway. You can see this repo for an example. As far as I understand, the Rclone setup doesn't need any modification on the application side, you only need to implement a sync/push button, or you could just make it so that the container automatically syncs the data folder with the cloud storage on a regular basis.

arbuilder commented 2 years ago

Data folder is already persistent if u have done volume mount as mentioned in readme. U can then do rsync/cloud backup on that directory. Ex- Persistent data of tachidesk on subsequent run docker run -p 127.0.0.1:4567:4567 -v < folder path >:/./home/suwayomi/.local/share/Tachidesk ghcr.io/suwayomi/tachidesk

pseudokawaii commented 2 years ago

@arbuilder like I said earlier, I'm using a PaaS (https://railway.app) for deployment, and they only support Dockerfiles. How do you run that volume mounting command on a Dockerfile?

arbuilder commented 2 years ago

@pseudokawaii hmm, I don’t use use paas so I can’t comment on that. It looks to me your only option would be to add cloud sync support inside dockerfile. I won’t support that but I can help u in installing rsync inside dockerfile.

ping me on discord @ Mosei as it will be difficult to chat here

pseudokawaii commented 2 years ago

@arbuilder like this one?

arbuilder commented 2 years ago

https://discord.com/channels/801021177333940224/855025275258929162/887053094553260092

arbuilder commented 2 years ago

Make sure that u change the links of all the modified files used in dockerfile and startup scripts.

Closing this request, u can ping me on discord if there are issues