Tar keeps reporting 99 character limit despite using posix option
Hi,
I'm using Ubuntu 14.04 with tar 1.27.1 to make daily backups. I'm running a simple command like Code:
tar -czf /tmp/webdev_backup.tgz * Code:
tar: bsa/wp-content/uploads/2014/09/copy-copy-cropped-copy-cropped-copy-cropped-cropped-header-musical1-1024x628.jpg: file name is too long (max 99); not dumped So I tried all of the below: Code:
tar --posix -czf /tmp/webdev_backup.tgz * I hope anyone has an idea for what might be wrong here... :-D Thanks! |
__________________________________________________
|
Here's fun
As I've illustrated further below, I'm using Ubuntu 14.04.3 and tar 1.27.1.
Code:
~/extern/lq.org/tar_w_very_long_filenames $ cat /etc/*elease If I put in my shell environment a variable that specifies options for tar, it can be overridden by a command line option. But ( it seems ) whether or not there is a slash specified on the command line as part of the path to the files to be archived, affects the operation as in the following sample runs. Code:
/tmp/tar_w_vary_long_filenames$ export TAR_OPTIONS='--format=v7' |
Thanks Rigor!
I eventually figured it out. Using --posix *did* make the errors about 99 characters go away, but there were others (about not being able to split filenames - some were very long indeed, based on weird URLs) and I just removed those files. Then I bumped into more stuff with link names that were too long :-). I was able to remove the stuff that was causing that too, fortunately. So in summary, it should just work indeed. |
All times are GMT -5. The time now is 09:19 AM. |