Hello,
<context>
I am trying to backup openvz containers from a Proxmox server.
Proxmox provides a tool called vzdump. It handles snapshoting the
container, packing config files and stuff for me. It outputs a tar on
stdout. I wanted to pull this tar with backuppc, but I figured out that
backuppc can't handle the .tar made by vzdump because of sparse files
inside.
</context>
Step to reproduce :
root@crashtest:/tmp/sparse2# truncate -s 10M output.file
root@crashtest:/tmp/sparse2# ls -lah
total 8.0K
drwxr-xr-x 2 root root 4.0K Sep 4 21:16 .
drwxrwxrwt 7 root root 4.0K Sep 4 21:16 ..
-rw-r--r-- 1 root root 10M Sep 4 21:16 output.file
root@crashtest:/tmp/sparse2# du -sh .
4.0K .
oot@crashtest:/tmp/sparse2# tar cfv sparse.tar output.file --sparse
output.file
root@crashtest:/tmp/sparse2# ls -lah
total 20K
drwxr-xr-x 2 root root 4.0K Sep 4 21:30 .
drwxrwxrwt 7 root root 4.0K Sep 4 21:31 ..
-rw-r--r-- 1 root root 10M Sep 4 21:16 output.file
-rw-r--r-- 1 root root 10K Sep 4 21:31 sparse.tar
root@crashtest:/tmp/sparse2# du -sh .
16K .
root@crashtest:/tmp/sparse2# su backuppc -c "cat sparse.tar |
/usr/share/backuppc/bin/BackupPC_tarExtract localhost / 0"
Can't open
/var/lib/backuppc/pc/localhost/new/f%2f/f000500000000000000000000050000000/foutput.file
for empty output create 644 0/0 0
000500000000000000000000050000000/output.file
Unable to open
/var/lib/backuppc/pc/localhost/new/f%2f/f000500000000000000000000050000000/attrib
for writingBotch, no matches on
/var/lib/backuppc/pc/localhost/new/f%2f/f000500000000000000000000050000000/attrib
(d96c9bb379dbe85813b4118ed92131a7)Done: 3 errors, 1 filesExist, 0
sizeExist, 4096 sizeExistComp, 1 filesTotal, 0 sizeTotal
root@crashtest:/tmp/sparse2# dpkg -l|grep backuppc
ii backuppc 3.2.1-5.1 amd64
high-performance, enterprise-grade system for backing up PCs
This is also in 3.2.1-4 (debian), and also in 3.3.0 of sourceforge.
Is this a bug or a feature ? If feature, any reason for not supporting
sparse files ?
Am I reporting this at the good place ?
Thank you.
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk
_______________________________________________
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/
|