minecraft-backup icon indicating copy to clipboard operation
minecraft-backup copied to clipboard

tar: Removing leading `/' from member names

Open BenSanders opened this issue 1 year ago • 3 comments

Seems when attempting to run a backup with rcon it hangs on the message tar: Removing leading /' from member names`

Using ./backup.sh -c -i /data/minecraft/server/world -o /backup -s localhost:25575:$secret -w rcon

BenSanders avatar Jun 28 '24 05:06 BenSanders

I'm having the same issue running it with tmux.

edit: but the backup went through anyways lol

lochbui avatar Nov 12 '24 07:11 lochbui

Tar has no output when its creating the file. I believe the tar: Removing leading / from member names is just a warning and it can continue anyway. You can also use a relative path instead of /data/... if you prefer and it will probably not show that message.

To see if it's progressing, check if there is a (possibly incomplete) tar file in the backup destination that's growing.

nicolaschan avatar Nov 12 '24 17:11 nicolaschan

https://unix.stackexchange.com/a/61760

Heres some talk about the topic, I was considering making a patch however it appears the action to solve it might depend upon if the user is passing an absolute path or relative path. Its a feature of tar working as intended, the output you see was sent to cerr.

Agree with the fix here being to simply run with a relative path, push/cd into the directory first

bgura avatar Feb 08 '25 06:02 bgura