Em 20/07/2016 18:21, Michael Stowe escreveu:
> On 2016-07-20 14:20, Neimar Volpini wrote:
>> 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
>> ----------
>>
>>
>> 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
>
> PaxHeader is the file that appears when tar doesn't know what to do
> with extended attributes, as per the POSIX specification. In other
> words, whatever is creating the tar file is storing extended
> attributes, but whatever is reading the tar file and creating the
> "PaxHeader/..." files does not understand those extended attributes.
OK, in this case "whatever is creating the tar file" would be smbclient
and "whatever is reading the tar file" would be BackupPC, correct ?
I assume this because when I ran the smbclient command via command line
and pipe the output to tar, it reads correctly (no PaxHeader). I can
only assume is related to BackupPC processing the smbclient tar output.
How does backuppc process the output from smbclient tar, does it uses
standard "tar" command from the OS or some perl library ? How/Where can
I change/check this ?
Thank you very much.
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/
|