ratismal / drivebackup Goto Github PK
View Code? Open in Web Editor NEWBacks up world backups to google drive or onedrive
Home Page: http://dev.bukkit.org/bukkit-plugins/drivebackup/
License: MIT License
Backs up world backups to google drive or onedrive
Home Page: http://dev.bukkit.org/bukkit-plugins/drivebackup/
License: MIT License
I have my config setup to do a local backup and then upload to FTP and delete the local backup. Everything is working except when doing the FTP backup the zip file shows up but its only 0 bytes. What could be causing this? I'm not sure if this plugin is even active. I hope so its awesome!
Hey love what you did with this plugin and it's doing wonders in helping me backup files.
One things can we adjust the message and prefix of the plugin it looks a bit uh vibrant in chat haha.
Thanks,
Oliver
For some reason when creating a backup with the default settings the DIM1 folder located in the world folder is ignored. This is using spiggot 1.14.2.
Albeit I'm a OneDrive fan I'm using the empty space in Google Drive for my test server, and after I click accept... it's attempting to use localhost. Thing is, this server is running on a Linux box, so I'm using my personal computer to visit the link... and since I have a firewall on there too I can't just change localhost to its IP...
Adding an option in the config to allow the end user to chose saving method would be an excellent addition to this plugin. For example, the user can select the option to only save locally, only remotely, or both. So say that the server owner is running off a limited disk size, and can't afford to use said space for backups. However, he has a large amount of unused space on his Google Drive, for example. He can select the option to only save the backups remotely to his Google Drive, therefore saving the valuable space on his local disk.
I've currently been using SimpleBackup and for my Creative server, sometimes it won't be visited for an entire day - SimpleBackup skips the backup for this day.
(Oops, accidentally hit enter...)
So, I can't connect DriveBackup to OneDrive... I get an error right after I click the link. Any help?
I've tried to use the root folder as the main folder to create the backup with, and from there I wanted to add some blacklisting to make sure I do not accidentally add the server jar and stuff like that. However, I cannot seem to figure out the config key to use the root folder? Care to give me some assistance with that?
This is using spiggot 1.14.2.
I am on a limited bandwidth at home and thus was looking for a plugin to back up to my google drive. This plugin looks like it would do very well. Unfortunately I have had a few incidences where I've had to restore a backup of a world map. Since my servers are hosted on Beastnode, Fragnet and the like I would be at the mercy of their tech support to download, unzip and copy my world folder. This could lead to down time. I've seen as slow as 3 hour response and once watched a ticket sit for 12 hours before being answered (thanks fragnet).
The option to restore a backed up world would make this plugin perfect for me. I have found deleting the old world is required to restore a world folder. For extra multiverse worlds this is no problem but for any of the 3 vanilla worlds this could be tricky since the plugin has to run on a live server and those worlds can't be unloaded. If a restore function had options to restore a specific world from the backup and to extract the world folder to a different folder name than it was backed up from that would resolve issues with restoring a live world.
Example: A backup session stores world, world_nether, world_the_end and world_bob in a zip file on a google drive. The player chooses to restore world_nether but rather than to world_nether folder to a folder called world_nether_2. The server owner then shuts down the server, deletes world_nether, renames world_nether_2 to world_nether, then starts the server. His nether has then been restored from the backup.
Thank you for your time and I hope you'll consider this option.
[04:10:27 WARN]: org.apache.commons.lang.UnhandledException: Plugin DriveBackup v1.0.7 generated an exception while executing task 12
at org.bukkit.craftbukkit.v1_9_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:56)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NoSuchMethodError: org.bukkit.Server.getOnlinePlayers()[Lorg/bukkit/entity/Player;
at ratismal.drivebackup.DriveBackup.Metrics.postPlugin(Metrics.java:335)
at ratismal.drivebackup.DriveBackup.Metrics.access$400(Metrics.java:57)
at ratismal.drivebackup.DriveBackup.Metrics$1.run(Metrics.java:223)
at org.bukkit.craftbukkit.v1_9_R1.scheduler.CraftTask.run(CraftTask.java:71)
at org.bukkit.craftbukkit.v1_9_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53)
... 3 more
Looks like it's related to Metrics not having the correct getOnlinePlayers method.
User Zethrus reported in Spigot Forums:
https://www.spigotmc.org/threads/drivebackup.133344/#post-1425058
i was waiting long for my backup to finish and then it said
org.apache.commons.net.io.CopyStreamException: IOException caught while copying.
[03:44:38] [Thread-49/WARN]: at org.apache.commons.net.io.Util.copyStream(Util.java:134)
[03:44:38] [Thread-49/WARN]: at org.apache.commons.net.ftp.FTPClient._storeFile(FTPClient.java:653)
[03:44:38] [Thread-49/WARN]: at org.apache.commons.net.ftp.FTPClient.__storeFile(FTPClient.java:624)
[03:44:38] [Thread-49/WARN]: at org.apache.commons.net.ftp.FTPClient.storeFile(FTPClient.java:1976)
[03:44:38] [Thread-49/WARN]: at ratismal.drivebackup.ftp.FTPUploader.uploadFile(FTPUploader.java:54)
[03:44:38] [Thread-49/WARN]: at ratismal.drivebackup.UploadThread.run(UploadThread.java:89)
[03:44:38] [Thread-49/WARN]: at java.lang.Thread.run(Thread.java:745)
[03:44:38] [Thread-49/WARN]: Caused by: java.net.SocketException: Connection reset
[03:44:38] [Thread-49/WARN]: at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:113)
[03:44:38] [Thread-49/WARN]: at java.net.SocketOutputStream.write(SocketOutputStream.java:153)
[03:44:38] [Thread-49/WARN]: at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
[03:44:38] [Thread-49/WARN]: at java.io.BufferedOutputStream.write(BufferedOutputStream.java:95)
[03:44:38] [Thread-49/WARN]: at org.apache.commons.net.io.Util.copyStream(Util.java:111)
[03:44:38] [Thread-49/WARN]: ... 6 more
File uploaded in 540.42 seconds (6769.58KB/s)
backup complete
sorry for the ...6 more its also in my logs
no crash
i think that 540 seconds for the backup for a plugins folder(i think it was even longer) was too long and i dont like these errors
the file did upload to my ftp(where i set it to)
can it be something with the file size?
the zipped file is 27.000.000 bytes
i hope u know what it is and that u can fix it
The server sometimes stops responding when a backup occurs, causing Spigot to shut it down.
This is most likely due to the backups being done in the main thread, causing the server to hang until completion. Spigot sees that the server isn't responding and shuts down.
Investigating
Investigating
Would you consider an option to upload to OneDrive?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.