Osiris-Team / AutoPlug-Client

Server manager with automatic plugin- mod- server- java- self- updater, scheduled restarts, automatic backups, shared folders, and many more handy features to automate/boost your server maintenance.
https://autoplug.one/
MIT License
55 stars 23 forks source link

GDrive backups #12

Open Osiris-Team opened 4 years ago

Osiris-Team commented 4 years ago

Pretty much a step by step guide on how to implement: https://o7planning.org/11889/manipulating-files-and-folders-on-google-drive-using-java

fulcanelly commented 2 years ago

Backups of what exactly, world or plugins ?

Osiris-Team commented 2 years ago

@fulcanelly Currently autoplug creates one backup zip for the complete server. The user can exclude/include specific files/folders. It would be great to be able to upload that backup to google drive and also handle the deletion of older ones on google drive.

If you are interested in implementing this, go ahead.

jivanpal commented 11 months ago

I came here wondering if there was an existing feature request for custom backup scripts. Seeing this, I am now wondering whether that would be in scope here as a new backup mechanism, e.g. we could implement a backup-mechanism setting whose values could be local-zip (default, current behaviour), local (see #138), google-drive, other mechanisms desired down the line for other platforms / storage backends, or custom-script (which I'm interested in, as I would like to just take Restic snapshots of the directory in a bespoke fashion whilst the server is down, but want to avoid the trouble of having to write an even more complex script to interact with AutoPlug in a tmux session in order to bring the server down, do the backup, and then bring the server back up).

If that sounds desirable, perhaps it would be better to implement custom-script first, and then just have other mechanisms such as google-drive be aliases for predefined scripts?

Osiris-Team commented 11 months ago

@jivanpal Yeah that sounds good, you can create a new issue for custom-script. If you know how to code in Java or know someone feel free to create a pull request.

Note that you would probably need to exclude the AutoPlug-Client.jar in your alternative backup software, since autoplug is still running at that time.

jivanpal commented 11 months ago

Wow, quick response!

Note that you would probably need to exclude the AutoPlug-Client.jar in your alternative backup software, since autoplug is still running at that time.

Surely AutoPlug-Client.jar is not changing during backup? The self-updater cannot run at the same time as the backup task, can it? From my logs, I was under the impression that the tasks run sequentially, not concurrently.

Osiris-Team commented 11 months ago

Yeah, AutoPlug is not changing. When running the tasks, all other tasks wait for the backup task to finish and then run concurrently.

Then it shouldn't be a problem I guess.