Well, Gemnin wrote it for me but i tried to run it and it works. Anyway, so generally what it does is that it copies all worlds into a new folder in backups/ and names it "backup <timestamp>"
#!/bin/bash
# Set the source directories
source_dirs=("world" "world_nether" "world_the_end")
# Set the backup directory
backup_dir="backups"
# Check if source directories exist
for source_dir in "${source_dirs[@]}"; do
if [ ! -d "$source_dir" ]; then
echo "Error: Source directory '$source_dir' not found."
exit 1
fi
done
# Check if backup directory exists, create if not
if [ ! -d "$backup_dir" ]; then
echo "Backup directory '$backup_dir' not found, creating it..."
mkdir -p "$backup_dir"
fi
# Get current date and time in desired format YYYY-MM-DD-HH-MM-SS
timestamp=$(date +%Y-%m-%d-%H-%M-%S)
# Create the new backup directory name
new_backup_dir="$backup_dir/backup $timestamp"
# Create backup directory
mkdir -p "$new_backup_dir"
# Copy the directories
for source_dir in "${source_dirs[@]}"; do
cp -a "$source_dir" "$new_backup_dir/"
# Check if copy was successful
if [ $? -ne 0 ]; then
echo "Error: Failed to copy directory '$source_dir' to '$new_backup_dir'."
exit 1
fi
done
# Check if all copies were successful
if [ $? -eq 0 ]; then
echo "Directories '${source_dirs[@]}' successfully backed up to '$new_backup_dir'."
else
echo "Error: Failed to backup some directories."
exit 1
fi
exit 0
UPD: i was able to make backup work, but now it gives me the following
I tried both absolute and relative paths. Didnt work
An error occurred while building the backup child process
java.io.IOException: Cannot run program "backup.sh": error=2, No such file or directory
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1170) ~[?:?]
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1089) ~[?:?]
at com.earth2me.essentials.Backup.lambda$run$1(Backup.java:93) ~[?:?]
at org.bukkit.craftbukkit.v1_21_R3.scheduler.CraftTask.run(CraftTask.java:82) ~[spigot-1.21.4-R0.1-SNAPSHOT.jar:4424-Spigot-aa7842e-442838f]
at org.bukkit.craftbukkit.v1_21_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:54) ~[spigot-1.21.4-R0.1-SNAPSHOT.jar:4424-Spigot-aa7842e-442838f]
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?]
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?]
at java.base/java.lang.Thread.run(Thread.java:1583) [?:?]
Caused by: java.io.IOException: error=2, No such file or directory
at java.base/java.lang.ProcessImpl.forkAndExec(Native Method) ~[?:?]
at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:295) ~[?:?]
at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:225) ~[?:?]
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1126) ~[?:?]
... 7 more
So i have 1.21.3 spigot server and i am trying to configure backups for my server. I could not find any documentation about /backup command in EssentialsX, so i followed Essentials wiki.
Important note is that my server is running on Debian
I added the following into my config.yml file
I also tried just 'backup.sh' but it did not work either. It just gives me "Error: An external backup script has not been configured" although i made "backup.sh" file in my main server directory. The script works when i just run it with bash so i have no idea why Essentials wont work with it. Does backup function even works in EssentialsX nowdays???
So i have a zombie farm which raises zombie up and drops down so they have a little hp left. And the problem is that zombies continue to stuck between water delivering them and soul sand water column which raises them up. It is so because i use signs to isolate water sources from each other, otherwise they mess up each other. How can i actually fix it?
I dont understand how weight works. Like whats the difference between weight and weight in prefix. For example, i give players weight of 0 in prefix and weight, and when i create another group and set its weight for example 10 in tab its lower than players. I dont understand
0
Well, Gemnin wrote it for me but i tried to run it and it works. Anyway, so generally what it does is that it copies all worlds into a new folder in backups/ and names it "backup <timestamp>"
0
Tried that already. Here is directory as a proof that i have .sh file there. I still cant get it to work - same error
0
UPD: i was able to make backup work, but now it gives me the following
I tried both absolute and relative paths. Didnt work
0
So i have 1.21.3 spigot server and i am trying to configure backups for my server. I could not find any documentation about /backup command in EssentialsX, so i followed Essentials wiki.
Important note is that my server is running on Debian
I added the following into my config.yml file
I also tried just 'backup.sh' but it did not work either. It just gives me "Error: An external backup script has not been configured" although i made "backup.sh" file in my main server directory. The script works when i just run it with bash so i have no idea why Essentials wont work with it. Does backup function even works in EssentialsX nowdays???
0
First of all, is this bukkit core or is it just vanilla?
Second of all why this specific version? Like usually people pick b1.7.3 because its most popular of all and has most of the plugins.
Well anyway a while ago i made a beta 1.7.3 server to play with my friends! I used this core
https://archive.org/details/craftbukkit1060
And found plugins here https://archive.org/details/BukkitMCBeta173
what you are looking for is xAuth plugin, i used it and it worked just fine for me!
0
Idk if u figured it out. i have the same exact problem. I just cant find essentialsX documentation on this specific command!
1
So guys eventually i figured out that i can place a villager behind soul sand so zombies get attracted to it and flow upwards!
0
Even if i put soulsand lower, so water flows down it will still mess up water delivering zombies
0
yes, thats how its working now, but i dont think its enough. I think it can be more efficient
0
So i have a zombie farm which raises zombie up and drops down so they have a little hp left. And the problem is that zombies continue to stuck between water delivering them and soul sand water column which raises them up. It is so because i use signs to isolate water sources from each other, otherwise they mess up each other. How can i actually fix it?
here are images if u need: https://imgur.com/a/DHI5Cjc
1
Actually, thanks. I got it now, that was other plugin that i needed to configure
0
Okay, so how do i make it display in tab correctly? Sorted as i want it to be?
0
I dont understand how weight works. Like whats the difference between weight and weight in prefix. For example, i give players weight of 0 in prefix and weight, and when i create another group and set its weight for example 10 in tab its lower than players. I dont understand
0
My permissions.yml file wont work, even tho server says it sees file.
Heres permissions.yml file:
groups:
Player:
default: true
build: true
permissions:
- essentials.msg
- essentials.tpa
- essentials.tpaccept
- essentials.tpdeny
- essentials.spawn
its file in server folder and not plugin's folder, i tried to put it in plugin's folder but it didnt do anything
I am using Permissions version [2.7.4] (Phoenix)
I have essentials installed too
0
I need it to be real block and it needs to be unbreakable, is that possible?