Problem with recursive rar archiving non-ascii filenames
Posted
by
AndreasT
on Ask Ubuntu
See other posts from Ask Ubuntu
or by AndreasT
Published on 2013-11-12T23:28:12Z
Indexed on
2013/11/13
10:11 UTC
Read the original article
Hit count: 311
Say I want to create a backup of folder MainFolder
's content using rar
. The command
rar a Backup.rar -r MainFolder
does the job.
BUT, if a subdirectory contains more than one file named with non-ASCII (?) characters, then only one of them is archived and the others get excluded.
For example, consider the following directory hierarchy (MainFolder
, A
and B
are folders; a
, b
, ?
and ?
are files)
+MainFolder
+A
-a
-b
-?
-?
+B
-a
-b
-a
-b
-?
-?
then the command rar a Backup.rar -r MainFolder
skips
MainFolder/A/?
MainFolder/?
while rar a Backup.rar -r MainFolder/*
still skips
MainFolder/A/?
Why is it so? Any help is greatly appreciated, thanks!
For the record, I already encountered some issues with non-ascii characters (see this question) that other Linux distributions seem not to have. Anyway, I use Lubuntu 12.04
, terminal is lxterminal
and echo $BASH_VERSION
returns 4.2.25(1)-release
. rar
version is 4.00 beta 3
.
Another curiosity: right-clicking on the folder and selecting Compress...
and then .rar
still has the same problem. Other options (zip
, tar
...) behave correctly.
© Ask Ubuntu or respective owner