horrible problem with .tgz backups

Ask questions about dedicated servers here and we and other users will do our best to answer them. Please also refer to the self-help section for tutorials and answers to the most commonly asked questions.
WoAyumi
A regular
A regular
Posts: 52
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Sat Apr 28, 2012 6:24 pm

Re: horrible problem with .tgz backups

Post by WoAyumi »

I know reasons of these errors.
Back-ups (archivator script) were made, while server were running. Some files in a folder, that had to be archived were changed after archiving process was initiated.
Hot Carl
A semi-regular
A semi-regular
Posts: 28
Joined: Sat Mar 24, 2012 6:23 am

Re: horrible problem with .tgz backups

Post by Hot Carl »

Not really sure, I have a script that compresses using the .tar with the tar -zcvf and I have zero problems. If I need to extract I use the tar -zxvf.

Did you try just tar -xvf?

Carl
WoAyumi
A regular
A regular
Posts: 52
Joined: Sat Apr 28, 2012 6:24 pm

Re: horrible problem with .tgz backups

Post by WoAyumi »

Yes, I did. Didn't helped.
Hot Carl
A semi-regular
A semi-regular
Posts: 28
Joined: Sat Mar 24, 2012 6:23 am

Re: horrible problem with .tgz backups

Post by Hot Carl »

I'm not sure why it isn't working, the tar -zxvf should extract on .tgz files and the tar -xvf should extract on any tar or tgz file.

http://www.linux.ie/newusers/beginners- ... de/tgz.php

There must be an issue with how it is being compressed, have you tried compressing with just the tar -cvf then extracting with tar -xvf to see if that works? This does work on one of my web servers so I am not sure why it wouldn't be working on yours.

Carl
User avatar
Edge100x
Founder
Founder
Posts: 13111
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: horrible problem with .tgz backups

Post by Edge100x »

Carl, from what he described, his script didn't perform "save-off" and "save-all" before it tried to compress the server, and tar may have aborted its operation, leaving invalid files.

WoAyumi, a backup plugin may work better for you, moving forward, as it can work with the game to make fully valid and complete backups. However, if you have a large world, anything that's not incremental will hurt server performance.
WoAyumi
A regular
A regular
Posts: 52
Joined: Sat Apr 28, 2012 6:24 pm

Re: horrible problem with .tgz backups

Post by WoAyumi »

save-off may not help in many cases, because there player.dat files and other dynamic data in WorldName folder.

I highly recommend to make a full server stop, before you'll perform a back-up.
Post Reply