espidev / ebackup

An easy and reliable plugin for backups on Spigot servers! Supports SFTP!
https://www.spigotmc.org/resources/ebackup-simple-and-reliable-backups-for-your-server-supports-ftp-sftp.69917/
GNU General Public License v3.0
54 stars 16 forks source link

Files being ignored as the process cannot access them. #22

Closed AgateBrick97792 closed 3 years ago

AgateBrick97792 commented 3 years ago

I just installed this plugin and I like it and functions well. I was wondering why it was ignoring certain files due to them being inaccessible. I copied the log from console on the backup. I can also send config if needed but I left everything alone except the save directory.

[12:01:48 INFO]: Starting backup... [12:01:48 INFO]: [eBackup] Starting backup... [12:01:49 INFO]: [eBackup] Backing up world world .\world... [12:02:04 WARN]: [eBackup] Error while backing up file world/session.lock, backup will ignore this file: The process cannot access the file because another process has locked a portion of the file [12:02:04 INFO]: [eBackup] Backing up world world_nether .\world_nether... [12:02:05 WARN]: [eBackup] Error while backing up file world_nether/session.lock, backup will ignore this file: The process cannot access the file because another process has locked a portion of the file [12:02:06 INFO]: [eBackup] Backing up world world_the_end .\world_the_end... [12:02:06 WARN]: [eBackup] Error while backing up file world_the_end/session.lock, backup will ignore this file: The process cannot access the file because another process has locked a portion of the file [12:02:06 INFO]: [eBackup] Backing up other files... [12:02:12 WARN]: [eBackup] Error while backing up file plugins/LuckPerms/luckperms-h2.mv.db, backup will ignore this file: The process cannot access the file because another process has locked a portion of the file 12:02:15 INFO: [eBackup] Backup complete!

espidev commented 3 years ago

The backup generated will be fine as three files will be skipped, but I believe (if you're on windows) when certain files are being accessed by a process (the server), the system will lock the file and I cannot back it up while that is happening. You don't need to worry about the session.lock files (they don't have any contents, they are just to show that the server is using the world). The LuckPerms database file there seems to be locked, so you probably have to use whatever LuckPerms has for backing up permissions.

AgateBrick97792 commented 3 years ago

Ok thank you very much. I'll have to see why LuckPerms file isn't backing up. Just wanted to make sure nothing wasnt getting backed up.