SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
BackupPC_archiveStart not using compression
Author Message
Post BackupPC_archiveStart not using compression 
Firstly, what a fantastic piece of software BackupPC is, well done Craig and co!

When I run BackupPC_archiveStart from the command line it's not using compression for the backup, the backup file is created using "raw", however if I start the archive job via the web-interface it uses compression (gzip by default).

The command I am running is:

/usr/share/backuppc/bin/BackupPC_archiveStart offsite-archive backuppc nphts

config:

$Conf{ArchiveComp} = 'gzip';
$Conf{CompressLevel} = '1';

thanks
--
Best Regards,
Stephen

Post BackupPC_archiveStart not using compression 
I take it nobody knows?

On Tue, Oct 7, 2008 at 3:28 PM, Stephen Vaughan <stephenvaughan < at > gmail.com ([email]stephenvaughan < at > gmail.com[/email])> wrote:
Firstly, what a fantastic piece of software BackupPC is, well done Craig and co!

When I run BackupPC_archiveStart from the command line it's not using compression for the backup, the backup file is created using "raw", however if I start the archive job via the web-interface it uses compression (gzip by default).

The command I am running is:

/usr/share/backuppc/bin/BackupPC_archiveStart offsite-archive backuppc nphts

config:

$Conf{ArchiveComp} = 'gzip';
$Conf{CompressLevel} = '1';

thanks
--
Best Regards,
Stephen




--
Best Regards,
Stephen

Post BackupPC_archiveStart not using compression 
Stephen writes:

When I run BackupPC_archiveStart from the command line it's not
using compression for the backup, the backup file is created using
"raw", however if I start the archive job via the web-interface it
uses compression (gzip by default).

The command I am running is:

/usr/share/backuppc/bin/BackupPC_archiveStart offsite-archive backuppc nphts

Looks like a typo in bin/BackupPC_archiveStart. This line:

compression => $bpc->{Conf}{CatPath},

should be

compression => $bpc->{Conf}{ArchiveComp},

Or slightly more correctly, if $bpc->{Conf}{ArchiveComp} is "none"
you should set compression to $bpc->{Conf}{CatPath} instead.

You might also want to change the value of compext
when compression is on.

Craig

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Post BackupPC_archiveStart not using compression 
hmm okay. That sort of worked, I did the first change now I'm getting an error for gzip:

2008-10-13 11:44:56 Archive failed (Error: gzip is not an executable program)$Conf{ArchiveComp} = 'gzip';
$Conf{CompressLevel} = '1';
On Mon, Oct 13, 2008 at 11:28 AM, Craig Barratt <cbarratt < at > users.sourceforge.net ([email]cbarratt < at > users.sourceforge.net[/email])> wrote:
Stephen writes:

When I run BackupPC_archiveStart from the command line it's not
using compression for the backup, the backup file is created using
"raw", however if I start the archive job via the web-interface it
uses compression (gzip by default).

The command I am running is:

/usr/share/backuppc/bin/BackupPC_archiveStart offsite-archive backuppc nphts


Looks like a typo in bin/BackupPC_archiveStart. This line:

compression => $bpc->{Conf}{CatPath},

should be

compression => $bpc->{Conf}{ArchiveComp},

Or slightly more correctly, if $bpc->{Conf}{ArchiveComp} is "none"
you should set compression to $bpc->{Conf}{CatPath} instead.

You might also want to change the value of compext
when compression is on.

Craig



--
Best Regards,
Stephen

Post BackupPC_archiveStart not using compression 
Stephen writes:

hmm okay. That sort of worked, I did the first change now I'm getting an error for gzip:

Set it to the full path, eg: /bin/gzip.

Craig

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Post BackupPC_archiveStart not using compression 
Still seems to be creating a .raw archive:

backuppc 25740 0.0 0.5 8724 5628 ? S 11:51 0:00 /usr/bin/perl /usr/share/backuppc/bin/BackupPC_archive offsite-archive archiveReq.25739.0
backuppc 25851 0.0 0.4 7320 4568 ? S 11:57 0:00 /usr/bin/perl /usr/share/backuppc/bin/BackupPC_archiveHost /usr/share/backuppc/bin/BackupPC_tarCreate /usr/bin/split localhost 24 /bin/gzip .raw 0000000 /data/NAS-Mount-MaxBackups/offsite 0 *
backuppc 25852 0.0 0.1 4132 1212 ? S 11:57 0:00 /bin/csh -cf /usr/share/backuppc/bin/BackupPC_tarCreate -t -h localhost -n 24 -s * . | /bin/gzip > /data/NAS-Mount-MaxBackups/offsite/localhost.24.tar.raw
backuppc 25853 19.6 1.4 17240 14576 ? D 11:57 0:34 /usr/bin/perl /usr/share/backuppc/bin/BackupPC_tarCreate -t -h localhost -n 24 -s * .

nphts.24.tar.raw

On Mon, Oct 13, 2008 at 11:50 AM, Craig Barratt <cbarratt < at > users.sourceforge.net ([email]cbarratt < at > users.sourceforge.net[/email])> wrote:
Stephen writes:

hmm okay. That sort of worked, I did the first change now I'm getting an error for gzip:


Set it to the full path, eg: /bin/gzip.

Craig



--
Best Regards,
Stephen

Post BackupPC_archiveStart not using compression 
Stephen writes:

Still seems to be creating a .raw archive:

Yes. The archive is now compressed, in spite of the extension:

/bin/csh -cf /usr/share/backuppc/bin/BackupPC_tarCreate -t -h localhost -n 24 -s \* . | /bin/gzip > /data/NAS-Mount-MaxBackups/offsite/localhost.24.tar.raw

The extension name is hardcoded too. In my earlier reply I said:

You might also want to change the value of compext
when compression is on.

Currently in bin/BackupPC_archiveStart:

compext => '.raw',

Craig

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Post BackupPC_archiveStart not using compression 
Yep you're right, thanks.

On Mon, Oct 13, 2008 at 12:12 PM, Craig Barratt <cbarratt < at > users.sourceforge.net ([email]cbarratt < at > users.sourceforge.net[/email])> wrote:
Stephen writes:

Still seems to be creating a .raw archive:


Yes. The archive is now compressed, in spite of the extension:

/bin/csh -cf /usr/share/backuppc/bin/BackupPC_tarCreate -t -h localhost -n 24 -s * . | /bin/gzip > /data/NAS-Mount-MaxBackups/offsite/localhost.24.tar.raw


The extension name is hardcoded too. In my earlier reply I said:

You might also want to change the value of compext
when compression is on.


Currently in bin/BackupPC_archiveStart:

compext => '.raw',

Craig



--
Best Regards,
Stephen

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB