DVDishka / Backuper

Minecraft backup plugin for Paper/Folia servers with FTP/SFTP support
MIT License
18 stars 5 forks source link

Allow to add all directories with `addDirectoryToBackup: [ "*" ]` #37

Open HydrolienF opened 1 week ago

HydrolienF commented 1 week ago

Hi thanks for this nice plugins. I was trying to save all my server files (excepts the backup folder), but I haven't found a way to add all of them without naming them 1 by 1. I have triied to set addDirectoryToBackup: [ "." ], it does include all my server files, but inside the parent directory. So I had the world/ duplicate in the .zip (container/world/ and world/)

I would appreciate if "*" for all the root directories and files was working, so I'm trying to do it. (I will switch from draft request to pull request once I will have end my test)

Allow "*" as a path & remove excluded directories from worlds to.

Let me know if it's clear enough for you or if I need to change somethings.

HydrolienF commented 1 week ago

I have found few minor bugs which should be fixed now. With that codes changes, your plugins is doing what I wanted it to do : save all server files excepts backups/

HydrolienF commented 1 week ago

I have triied to do as few changes as possible so that every changes can be understoud. Let me know if you need more explanation about something or want any changes.

DVDishka commented 1 week ago

Thank you for your additions! I am very happy to see new contributors and will review and implement your changes in near future