MineZip
MineZip
Zip and Unzip your files and data in game or on the console. Backing up the entire server will be easier than ever. If you have problems uploading multiple files, why not just use a zip file to upload everything and unzip it again?
German? Check the translated page here.
Commands
"/zip" will bring up this help menu:
Command | Description |
---|---|
/zip list | List every file in the server folder |
/zip list all | Same as /zip list |
/zip list zip | List all the zip files in the server folder |
/zip list folder | List all the folders in the server folder (e.g. "plugins") |
/zip check [filename] | List all the files that have or contain that name. |
/zip zip [folder] | Zip a folder. This command can take multiple commands, meaning that you can zip multiple files at once into one zip file. If you use /zip zip *, you will compress the whole server. |
/zip unzip [zipfile] | Unzip a zip file. The zip file will have the same name as the zip file, only leaving out the ".zip" at the end |
/zip delete [zipfile] | Delete a zip file. This command is turned off by default, it only can be activated in the config.yml file. You will have the same features here as in the /zip zip command. |
/zip rename [zipfile] [new name] | Rename files such as world.zip to parkour.zip. It also checks, if the new name is already taken, which means that it's impossible to accidentally overwrite other files. |
Configuration
- Almost all messages completely configurable, including color and line breaks
- When using the /zip list command, you can sort the list either alphabetically or by its file type
- List all files that are included in the process of zipping or unzipping file
- Set the delete command available or not (setting it to false will even remove the command from the help menu)
- Full list here
Permissions
Without any permissions, only OPs (and the console) will be allowed to use all /zip commands.
For everything else, there's just one permission:
- zip.commands
Note: If a user does not have the permission, by default he will receive a "Unknown command. Type "help" for help." message. This message is configurable.
Uploading Zip Files
When creating a zip file, it is important to create the zip file in the world folder. If you compress the world folder itself, unzipping it will create 2 world folders inside of each other, which the server can't read.
This is a very nice plugin! Keep up the nice work.
Nice plugin, useful for people that use 24/7 hosts ^^
Thank you very much for this plugin. Now I am able to unzip my backups on the server and don´t need to download and upload it anymore. My World folder is 1GB big :D As i host a Mod Server, sometimes i need to use backups to restore the world. It took more than 2 hours to do this. You´ve saved me a lot of time.
@XeonG8
Fixed the little mistake I made between the "extracting" and "compressing" message. I also implemented the /zip reload method, personalized directories and some other minor functionality.
Last but not least, before the new version is released I'll give my best to figure out a solution for the "locked files" problem, hopefully successful. Until then, thanks for notifying me about the little mistakes and giving me suggestions!
errm when you do /zip zip
why does it say in console "extracting " etc
when it should be "compressing". I found option to disable console output, but no /zip reload config option, would be good...
Another thing is that it would be nice if zip config had an option to specifiy a folder where it just dumps zip files.. like a folder in the same server directory where plugins is located.
also it fails to compress locked files...
minebackup seems to handle locked files fine.
@XeonG8
Yes, indeed. It always checks for the full name, which means that if you type in "/zip zip c", it won't zip every file that starts with the letter c. Since 1.2, you're also able to zip more than one file, eg. "/zip zip plugins/GroupManager plugins/Essentials.jar" will create one zip file with the jar file and the directory.
"/zip zip plugins/GroupManager" would it create a "GroupManager.zip" file with the contents of that directory only?
@Marium0505
Implemented it in v1.2, thanks!
great plugin if your host uses multicraft
Can you add a "/zip all" com,and to zip every directory and file found on the server?