file name too long to be stored in a GNU multivolume header
Hi all,
A quick script to backup one of our servers - it uses tar and splits the tar file into multiple files of a known size. Unfortunately, it would seem that tar (when using the GNU format) doesn't support long file/directory paths in a multi-volume header. The heart of the script is noted below: Code:
tar \ Grant. |
Odd! From the GNU tar manual:
Quote:
|
The title of the thread is the exact error message.
The job is run at 1am by a cron entry. The cron entry does not redirect stdout nor stderr to /dev/null (purposefully, so we get mailed the results). The mail is as follows: Code:
tar: Removing leading `/' from member names Code:
#!/bin/sh |
I glanced through the tar source code and found this, as a comment inside the block of code that writes the multi-volume header:
Code:
/* FIXME: Michael P Urban writes: [a long name file] is being written |
Ouchy! We're still on tar v.1.15.1. FC4 server that's badly in need of updating but we can't really afford to take various services off-line.
Thank you. :) |
Still no fix?
I did not want to duplicate this thread, so I am posting here. I am running into the same issue. I am trying create multiple 1TB .tar files as part of a backup routine using the -M option with the tar utility.
My tar command looks like this: Code:
tar -cM --file=Backup_A.tar --file=Backup_B.tar --file=Backup_C.tar --file=Backup_D.tar --file=Backup_E.tar --file=Backup_F.tar --file=Backup_G.tar --file=Backup_H.tar --tape-length=1T /DirToBackup Code:
:file name too long to be stored in a gnu multi volume header, truncated Tar version is 1.28. Running Ubuntu Server 16.04. |
All times are GMT -5. The time now is 03:53 PM. |