Launchpad has imported 12 comments from the remote bug at
https://bugzilla.redhat.com/show_bug.cgi?id=473944.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.

------------------------------------------------------------------------
On 2008-12-01T15:17:20+00:00 Filipe wrote:

Created attachment 325239
Patch for lib/BackupPC/Lib.pm

Description of problem:
Changing TopDir in config file does not affect pool and cpool, BackupPC still 
thinks those are under the default directory /var/lib/BackupPC


Version-Release number of selected component (if applicable):
3.1.0-3.fc10


How reproducible:
Every time.


Steps to Reproduce:
1. Set $Conf{TopDir} = '/whatever'; in config.pl
2. Create /whatever with the default BackupPC directories (pool, cpool, pc, 
trash) and right permissions.
3. Run a backup.
  

Actual results:
cpool will be empty, and this will be the output in /var/log/BackupPC/LOG:
2008-11-29 10:23:40 BackupPC_link got error -4 when calling 
MakeFileLink(/whatever/pc/xxxname/0/f%2fetc/fDIR_COLORS, 
a1fbdaecae5425dc9d24653e5c87a22e, 1)


Expected results:
The files in cpool would be correctly created.


Additional info:
This mailing list post has a patch for the problem:
http://sourceforge.net/mailarchive/message.php?msg_name=20080808032558.GG13869%40gratch.parplies.de

I'm attaching the same patch here.

I applied this patch to an already installed BackupPC from the Fedora
RPM, and after that it worked as supposed to.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/backuppc/+bug/246659/comments/1

------------------------------------------------------------------------
On 2008-12-07T12:03:33+00:00 Johan wrote:

I understand the problem...

But these patch is not included upstream, and seems not well tested...

I'll keep this in mind, but won't include it for now, I'd like to have
more come backs before.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/backuppc/+bug/246659/comments/2

------------------------------------------------------------------------
On 2008-12-07T15:52:53+00:00 Filipe wrote:

The same problem has been reported several other times in the backuppc-devel 
list:
http://sourceforge.net/mailarchive/forum.php?thread_name=48CEEE9A.3080106%40resheteva.lan&forum_name=backuppc-devel
http://sourceforge.net/mailarchive/forum.php?thread_name=20080917151648.GC22362%40localhost.localdomain&forum_name=backuppc-devel
http://sourceforge.net/mailarchive/forum.php?thread_name=491B3BD2.4080301%40gmail.com&forum_name=backuppc-devel
http://sourceforge.net/mailarchive/forum.php?thread_name=4921C17B.1050905%40resheteva.lan&forum_name=backuppc-devel

The problem has been reported to the list since August, but so far the
developers have not said anything about it. If you have another way of
contacting them, please do, since this is a problem that should be
simple to solve.

There is an alternative patch suggested by a Debian user, but it's
setting the variables on the wrong place, inside the function that reads
the config file instead of after calling that function where TopDir may
potentially be changed.

If you look at the patch, it's extremely straighforward, all it's doing
is setting CPool and Pool *after* resetting TopDir instead of before.
You can also do the steps on the reported bug and verify that it indeed
happens, and cpool will be empty. In fact, you will have a directory
structure created under /var/lib/backuppc, no matter what you set TopDir
to.

There is also the Debian bug:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=495504

But there they took a ridiculous approach of saying that if you want to
do that, you should use a symbolic link in /var/lib/backuppc to wherever
you want to move it, but that is ridiculous since it breaks the
installed RPM (rpm --verify will point that out), and also, if that's
the case, the possibility to redefine TopDir should be removed from the
config.

I still think you should go ahead and apply the patch.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/backuppc/+bug/246659/comments/3

------------------------------------------------------------------------
On 2008-12-07T18:08:53+00:00 Johan wrote:

The symlink is what I've used for long times, it was not possible to
change the backup dir in BackupPC 2.x ; and I've kept this method.

But I'm okay, I'll take a look to push the new patched version on
testing this week ; the patch is very simple, thanks for it.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/backuppc/+bug/246659/comments/4

------------------------------------------------------------------------
On 2008-12-10T22:39:32+00:00 Filipe wrote:

Hi,

Please see this message by Paul Mantz from the backuppc-devel mailing list:
http://sourceforge.net/mailarchive/forum.php?thread_name=42f28fe0812101410v5d625b3g68693c28e1a8b258%40mail.gmail.com&forum_name=backuppc-devel

It includes a patch for the issue (similar to the one I posted, however
putting the lines a little lower in the code).

Also have a look at this previous e-mail, where Craig Barratt says Paul Mantz 
is actually who has been doing more development in BackupPC recently:
http://sourceforge.net/mailarchive/forum.php?thread_name=a1a3029e-c4b5-4788-b381-560a8373e5fb&forum_name=backuppc-devel

He says this patch will be included in the next Zmanda release of
BackupPC, and as the other e-mail suggests, it will be also present in
the next main release of BackupPC as well.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/backuppc/+bug/246659/comments/5

------------------------------------------------------------------------
On 2008-12-24T04:51:39+00:00 Johan wrote:

Paul Mantz released a "BackupPC Community 3.1.1" :
http://sourceforge.net/mailarchive/forum.php?thread_name=42f28fe0812221729y3915cdcei1900877208cfbd54%40mail.gmail.com&forum_name
=backuppc-users

But, for the moment, changes were not commited upstream, so I won't
package this version, I'll wait for changes to be commited upstream, as
he promised.

This work on BackupPC seems a little bit closed to me, and zmanda's
backuppc.com does not seem to be affiliated in any way with the project.

Patching should also be a solution, but I'd prefer to see an official
new release :)

Reply at:
https://bugs.launchpad.net/ubuntu/+source/backuppc/+bug/246659/comments/6

------------------------------------------------------------------------
On 2009-04-10T16:22:01+00:00 Fedora wrote:

BackupPC-3.1.0-4.fc10 has been submitted as an update for Fedora 10.
http://admin.fedoraproject.org/updates/BackupPC-3.1.0-4.fc10

Reply at:
https://bugs.launchpad.net/ubuntu/+source/backuppc/+bug/246659/comments/7

------------------------------------------------------------------------
On 2009-04-10T16:22:06+00:00 Fedora wrote:

BackupPC-3.1.0-4.fc9 has been submitted as an update for Fedora 9.
http://admin.fedoraproject.org/updates/BackupPC-3.1.0-4.fc9

Reply at:
https://bugs.launchpad.net/ubuntu/+source/backuppc/+bug/246659/comments/8

------------------------------------------------------------------------
On 2009-04-13T19:33:49+00:00 Fedora wrote:

BackupPC-3.1.0-4.fc10 has been pushed to the Fedora 10 testing repository.  If 
problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update BackupPC'.  You can provide 
feedback for this update here: 
http://admin.fedoraproject.org/updates/F10/FEDORA-2009-3517

Reply at:
https://bugs.launchpad.net/ubuntu/+source/backuppc/+bug/246659/comments/9

------------------------------------------------------------------------
On 2009-04-13T19:45:17+00:00 Fedora wrote:

BackupPC-3.1.0-4.fc9 has been pushed to the Fedora 9 testing repository.  If 
problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing-newkey update BackupPC'.  You can 
provide feedback for this update here: 
http://admin.fedoraproject.org/updates/F9/FEDORA-2009-3608

Reply at:
https://bugs.launchpad.net/ubuntu/+source/backuppc/+bug/246659/comments/10

------------------------------------------------------------------------
On 2009-05-20T00:48:46+00:00 Fedora wrote:

BackupPC-3.1.0-4.fc10 has been pushed to the Fedora 10 stable
repository.  If problems still persist, please make note of it in this
bug report.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/backuppc/+bug/246659/comments/11

------------------------------------------------------------------------
On 2009-05-20T00:53:43+00:00 Fedora wrote:

BackupPC-3.1.0-4.fc9 has been pushed to the Fedora 9 stable repository.
If problems still persist, please make note of it in this bug report.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/backuppc/+bug/246659/comments/12


** Changed in: backuppc (Fedora)
   Importance: Unknown => Medium

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/246659

Title:
  Backuppc no compression when change topdir

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/backuppc/+bug/246659/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to