BackupPC-users

[BackupPC-users] Partial backup. "Unable to open ... for writing" errors in XFerLOG file.

2010-10-12 11:53:29
Subject: [BackupPC-users] Partial backup. "Unable to open ... for writing" errors in XFerLOG file.
From: Konstantin <gshaud AT gmail DOT com>
To: backuppc-users AT lists.sourceforge DOT net
Date: Tue, 12 Oct 2010 18:51:10 +0300
I found the reason:

Backuppc transform filenames such
%D0%B8%D0%BD%D0%B2%D0%B5%D0%BD%D1%82%D0%B0%D1%80%D0%B8%D0%B7%D0%B0%D1%86%D0%B8%D1%8F_%D1%81_%D0%BF%D0%BE%D0%BC%D0%BE%D1%89%D1%8C%D1%8E_%D1%81%D0%B2%D1%8F%D0%B7%D0%BA%D0%B8_glpi_%D0%B8_ocs-ng.changes
to filenames such
f%25D0%25BA%25D0%25B0%25D0%25BA_%25D0%25B7%25D0%25B0%25D1%2580%25D0%25B5%25D0%25B3%25D0%25B8%25D1%2581%25D1%2582%25D1%2580%25D0%25B8%25D1%2580%25D0%25BE%25D0%25B2%25D0%25B0%25D1%2582%25D1%258C_%25D0%25B1%25D0%25B5%25D1%2581%25D0%25BF%25D0%25BB%25D0%25B0%25D1%2582%25D0%25BD%25D1%258B%25D0%25B9_%25D0%25B4%25D0%25BE%25D0%25BC%25D0%25B5%25D0%25BD_%25D0%25B2_%25D0%25B7%25D0%25BE%25D0%25BD%25D0%25B5_org.ua.changes
and after this transformation filename become too long for write.
Replacing "%" char to "%25" does filename more then two times longer
from original and after that backuppc fail to write it, because
filename length more than 255 chars.

Workaround is tar directory with such names before backup using
$Conf{DumpPreUserCmd} and $Conf{RestorePreUserCmd} for this.

For my mind it's very strange behaviour but development team of course
know better which way backuppc should work.

> Hello.
>
> I installed backuppc 3.2.0 and try to backup my /var/www/10.102.114.101 dir.
> When I finished backup I have seen bunch of strange errors in XFerLOG
> file, such as:
>
> Unable to open 
> /var/lib/backuppc/pc/manumba/new/f%2f/fvar/fwww/f10.102.114.101/fhtdocs/fwordpress-ru/fdokuwiki/fdata/fattic/f%25D0%25B8%25D0%25BD%25D0%25B2%25D0%25B5%25D0%25BD%25D1%2582%25D0%25B0%25D1%2580%25D0%25B8%25D0%25B7%25D0%25B0%25D1%2586%25D0%25B8%25D1%258F_%25D1%2581_%25D0%25BF%25D0%25BE%25D0%25BC%25D0%25BE%25D1%2589%25D1%258C%25D1%258E_%25D1%2581%25D0%25B2%25D1%258F%25D0%25B7%25D0%25BA%25D0%25B8_glpi_%25D0%25B8_ocs-ng.1236074977.txt.gz
> for writing
> Botch, no matches on
> /var/lib/backuppc/pc/manumba/new/f%2f/fvar/fwww/f10.102.114.101/fhtdocs/fwordpress-ru/fdokuwiki/fdata/fattic/f%25D0%25B8%25D0%25BD%25D0%25B2%25D0%25B5%25D0%25BD%25D1%2582%25D0%25B0%25D1%2580%25D0%25B8%25D0%25B7%25D0%25B0%25D1%2586%25D0%25B8%25D1%258F_%25D1%2581_%25D0%25BF%25D0%25BE%25D0%25BC%25D0%25BE%25D1%2589%25D1%258C%25D1%258E_%25D1%2581%25D0%25B2%25D1%258F%25D0%25B7%25D0%25BA%25D0%25B8_glpi_%25D0%25B8_ocs-ng.1236074977.txt.gz
> (5ab9c6d42ceb79a41a98979a2d62fd38)
>  create   644     81/81        2583
> var/www/10.102.114.101/htdocs/wordpress-ru/dokuwiki/data/attic/%D0%B8%D0%BD%D0%B2%D0%B5%D0%BD%D1%82%D0%B0%D1%80%D0%B8%D0%B7%D0%B0%D1%86%D0%B8%D1%8F_%D1%81_%D0%BF%D0%BE%D0%BC%D0%BE%D1%89%D1%8C%D1%8E_%D1%81%D0%B2%D1%8F%D0%B7%D0%BA%D0%B8_glpi_%D0%B8_ocs-ng.1236074977.txt.gz
>
> When I tried to restore dir /var/www/10.102.114.101 dir to tar file,
> This tar file had not files that listed with such errors in XFerLOG.
> So I have incomplete backup.
>
> I have enough inodes and disk space:
> manumba temp # df -i
> /dev/sda3            19668992 1528158 18140834    8% /
> udev                  212344    2431  209913    2% /dev
> /dev/sda1              33200      56   33144    1% /boot
> none                  212344       4  212340    1% /dev/shm
> /dev/sda4            40960000  291915 40668085    1% /mnt/vault
> manumba temp # df
> /dev/sda3            309647092 180712744 113205108  62% /
> udev                     10240       232     10008   3% /dev
> /dev/sda1               521748     12488    482756   3% /boot
> none                   3114548        12   3114536   1% /dev/shm
> /dev/sda4            645064624 522122024  90175224  86% /mnt/vault
>
> Say please, how can I resolve this issue?
>
> Thanks in advance.
> Konstantin.
>

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
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>