BackupPC-users

[BackupPC-users] PaxHeader directories in smb backups with ISO-Latin-1 filenames

2016-07-20 15:21:22
Subject: [BackupPC-users] PaxHeader directories in smb backups with ISO-Latin-1 filenames
From: Neimar Volpini <neimar AT estobel.com DOT br>
To: backuppc-users AT lists.sourceforge DOT net
Date: Wed, 20 Jul 2016 16:20:55 -0300
Hello,

Since I've upgraded to Ubuntu 16.04 I'm having problems with BackupPC 
and Samba, most of them related to samba version 4.3 (used to work fine 
in samba 4.1+).

Right now I'm struggling with smb backups for windows hosts that 
contains filenames with ISO-Latin-1 accented characters. Names like 
"exceção", "acentuação" and so... when such file name or directory name 
is found a "PaxHeader" directory is created.

My windows host directory tree:

----------
/acentuação
./acentuação/outro.txt
./exceção.txt
./pasta1
./pasta1/preços.txt
./pasta1/teste.txt
----------

When BackupPC does the backup it brings those "PaxHeader" extra directories:

XferLOG
----------
Running: /usr/bin/smbclient //apolo/teste-backup -W XXXX -U xxxx -E -d 1 
-c tarmode\ full -TcrX - \\\\exclude
full backup started for share teste-backup
Xfer PIDs are now 31617,31616
Domain=[XXXX] OS=[Windows Server 2008 R2 Standard 7601 Service Pack 1] 
Server=[Windows Server 2008 R2 Standard 6.1]
tar:316  tarmode is now full, system, hidden, noreset, quiet
tar:712  Total bytes received: 7
   create   755       0/0         108 PaxHeader/acentuação
   create   755       0/0           0 acentuação
   pool     644       0/0         117 acentuação/PaxHeader/outro.txt
   create   644       0/0           0 acentuação/outro.txt
   create   644       0/0         108 PaxHeader/exceção.txt
   pool     644       0/0           7 exceção.txt
   create   755       0/0           0 pasta1
   create   644       0/0         113 pasta1/PaxHeader/preços.txt
   create   644       0/0           0 pasta1/preços.txt
   create   644       0/0           0 pasta1/teste.txt
tarExtract: Done: 0 errors, 5 filesExist, 124 sizeExist, 117 
sizeExistComp, 8 filesTotal, 453 sizeTotal
----------

When I execute smbclient via command line it doesn't show those directories:

----------
/usr/bin/smbclient //apolo/teste-backup -A smbpwd -W XXXX -U xxxx -E -d 
1 -c tarmode verbose full -TcrX - \\\\exclude | tar -tvf -
Domain=[XXXX] OS=[Windows Server 2008 R2 Standard 7601 Service Pack 1] 
Server=[Windows Server 2008 R2 Standard 6.1]
tar:316  tarmode is now full, system, hidden, noreset, quiet
tar:712  Total bytes received: 7
drwxr-xr-x 0/0               0 2016-07-20 15:50 ./acentuação/
-rw-r--r-- 0/0               0 2016-07-19 22:00 ./acentuação/outro.txt
-rw-r--r-- 0/0               7 2016-07-20 15:26 ./exceção.txt
drwxr-xr-x 0/0               0 2016-07-20 15:50 ./pasta1/
-rw-r--r-- 0/0               0 2016-07-19 22:00 ./pasta1/preços.txt
-rw-r--r-- 0/0               0 2016-07-19 22:00 ./pasta1/teste.txt
----------

Some system info:

----------
Ubuntu 16.04.1 LTS amd64

backuppc 3.3.1-2ubuntu3
samba 2:4.3.9+dfsg-0ubuntu0.16.04.2

locale
LANG=pt_BR.UTF-8
LANGUAGE=pt_BR:pt:en
LC_CTYPE="pt_BR.UTF-8"
LC_NUMERIC=pt_BR
LC_TIME=pt_BR
LC_COLLATE="pt_BR.UTF-8"
LC_MONETARY=pt_BR
LC_MESSAGES="pt_BR.UTF-8"
LC_PAPER=pt_BR
LC_NAME=pt_BR
LC_ADDRESS=pt_BR
LC_TELEPHONE=pt_BR
LC_MEASUREMENT=pt_BR
LC_IDENTIFICATION=pt_BR
LC_ALL=
----------

I'm not sure it is a samba problem, system encoding problem, tar problem 
... just looking for some directions to try fixing it.


Thanks.

Neimar


------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/
<Prev in Thread] Current Thread [Next in Thread>