Szum123321 / textile_backup

Backup Mod for Fabric
https://www.curseforge.com/minecraft/mc-mods/textile-backup
GNU General Public License v3.0
89 stars 28 forks source link

[Feature] Support cron schedule expressions #112

Open ChristopherHaws opened 1 year ago

ChristopherHaws commented 1 year ago

Would it be possible to add support for cron expressions instead of seconds for scheduling the backups?

Thanks! :)

Szum123321 commented 1 year ago

Sorry, one of the main goals of TxB is to stay platform-agnostic.

ChristopherHaws commented 1 year ago

Cron expressions are not platform specific. I want my server to backup at the same time everyday and I am looking for a way to do that. I don't want it to be based on how long the server has been online.

Szum123321 commented 1 year ago

You have to understand that TxB is meant to operate fully within the game. There is a very important separation of conserns baked into its design. TxB should not denpend on any external tools, thus avoiding the issue of having to ship those to other platforms.

If you operate within the host operting system what's stopping you from using system-level tools? These are usually far more powerful, relaible.

ChristopherHaws commented 1 year ago

I'm not sure what your mean. I am not talking about creating a cron job which would be OS specific. I am talking about adding the ability to schedule the backup to happen at a specific time of day. I'm not sure what external tools that would be relying on.

Szum123321 commented 1 year ago

Oh, right. Sorry I did misunderstand you. I still feel like it would be bloat, basically. I might think about this, so for now, I will reopen this issue.