#1  
Old 28th June 2007, 23:16
raptor2552 raptor2552 is offline
Junior Member
 
Join Date: Apr 2007
Location: Melbourne, FL
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
Default backuppc restore

There two more questions I have which may be because of some configuration, or perhaps a user, problem. Since this is new to me I'm setting backuppc to use tar on the host computer to experiment with, get the lay of the land.

I cannot restore any files and the log reports:

Code:
2007-06-28 09:03:42 Restore failed (BackupPC_tarCreate failed)
2007-06-28 11:03:52 Running: /usr/share/backuppc/bin/BackupPC_tarCreate -h localhost -n 3 -s / -t -r /home/mike/Media -p /home/mike/Media/ /home/mike/Media/Photo
Why is backuppc using BackupPC_tarCreate and not BackupPC_tarExtract? Am I totally off base on this or what?

Here is my localhost.pl file:
Code:
#
# Local server backup of /etc as user backuppc
#
$Conf{XferMethod} = 'tar';

$Conf{TarShareName} = '/';
$Conf{BackupFilesOnly} = ['/home/mike', '/var/www'];
$Conf{BackupFilesExclude} = ['/home/mike/.VirtualBox','/home/mike/dvdrip-data', '/var/www/smfbbs'];

$Conf{TarClientCmd} = '/usr/bin/env LC_ALL=C $tarPath -c -v -f - -C $shareName'
                        . ' --totals';

$Conf{TarClientRestoreCmd} = ' /usr/bin/env LC_ALL=C $tarPath -x -p --numeric-owner --same-owner'
		   . ' -v -f - -C $shareName+';

# remove extra shell escapes ($fileList+ etc.) that are
# needed for remote backups but may break local ones
$Conf{TarFullArgs} = '$fileList';
$Conf{TarIncrArgs} = '--newer=$incrDate $fileList';
The config.pl script has not been modified.

Secondly I noticed that backuppc did not backup many of my files because "Access was denied". I had put backuppc in the sudoers files as instructed by the install script:
Code:
 backuppc ALL = NOPASSWD: /bin/tar
How do get this to work?
Reply With Quote
Sponsored Links
  #2  
Old 29th June 2007, 18:43
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,739 Times in 2,574 Posts
Default

Which distribution do you use? What's the output of
Code:
df -h
on the server?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 29th June 2007, 19:37
raptor2552 raptor2552 is offline
Junior Member
 
Join Date: Apr 2007
Location: Melbourne, FL
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Here you go:
Code:
mike in ~:$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sdb1             142G   16G  119G  12% /
varrun               1014M  304K 1014M   1% /var/run
varlock              1014M     0 1014M   0% /var/lock
procbususb           1014M  136K 1014M   1% /proc/bus/usb
udev                 1014M  136K 1014M   1% /dev
devshm               1014M     0 1014M   0% /dev/shm
/dev/sda2             110G   19G   92G  18% /media/DataVolume
/dev/sda1              40G  9.9G   30G  26% /media/WindowsVolume
tmpfs                1014M   34M  981M   4% /lib/modules/2.6.20-16-386/volatile
tmpfs                1014M   33M  981M   4% /lib/modules/2.6.20-16-generic/volatile
tmpfs                1014M   34M  981M   4% /lib/modules/2.6.20-16-lowlatency/volatile
Reply With Quote
  #4  
Old 30th June 2007, 16:30
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,739 Times in 2,574 Posts
Default

Doesn't seem to be a space problem.
Which distribution do you use?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 1st July 2007, 14:53
raptor2552 raptor2552 is offline
Junior Member
 
Join Date: Apr 2007
Location: Melbourne, FL
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
Default

I'm not sure what you mean by distribution so here is everything that seems relevant.
OS
Code:
Ubuntu 7.04 (Feisty Fawn), Linux 2.6.20-16-386 i686 GNU/Linux
Tar
Code:
tar (GNU tar) 1.16
Copyright (C) 2006 Free Software Foundation, Inc.
BackupPC
Code:
version 2.1.2pl1
Perl
Code:
This is perl, v5.8.8 built for i486-linux-gnu-thread-multi
Apache2
Code:
Server version: Apache/2.2.3
Server built:   Jan 15 2007 18:14:50
Reply With Quote
  #6  
Old 2nd July 2007, 18:44
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,739 Times in 2,574 Posts
Default

Ok, you're using Ubuntu Feisty Fawn.

Please try this:
Code:
ln -sf /bin/bash /bin/sh
Can you restore your files then?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Database Backup and Restore PoleCat Feature Requests 5 16th May 2007 15:36
Backup / Restore SamTzu General 8 16th May 2007 15:30
Using backuppc for ISPConfig mxc General 1 11th February 2007 12:43
please help...restore 180 mb backup gary1974 Programming/Scripts 3 30th January 2007 13:08
systemimager restore errors Randy HOWTO-Related Questions 5 2nd November 2006 15:02


All times are GMT +2. The time now is 19:01.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.