Re: [BackupPC-users] BackupPC_tarCreate failed

2016-01-18 Thread David Rotger
This is my localhost.pl, it's very diferent...

#
# Local server backup of /etc as user backuppc
#
$Conf{XferMethod} = 'tar';

$Conf{TarShareName} = [
  '/data'
];

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

# 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';
$Conf{RsyncShareName} = [
  '/data'
];
$Conf{ArchiveDest} = '/mnt/smb';

And my sudoers:

backuppc ALL=NOPASSWD: /usr/bin/rsync



2016-01-16 0:12 GMT+01:00 David Rotger :

> Many thanks, tomorrow I will check the config. I'am using Debian 8 and
> installed backuppc from repos. I have an external HD mount bind to
> backuppc. It's strange the ssh
> El 15/1/2016 22:56, "Carl Wilhelm Soderstrom" 
> escribió:
>
>> On 01/14 10:42 , David Rotger wrote:
>> > and now I can connect from user backuppc to localhost without password.
>> And
>> > the restore work!!!
>>
>> Glad you got things solved!
>> It seems strange to me, to use ssh to back up the local machine. Here's
>> the
>> configuration I use in localhost.pl, to back up the BackupPC server
>> itself.
>> This uses plain tar, running with sudo in order to get the necessary
>> permissions to back up all the files, even the ones owned by root.
>> (Note that the BackupPC data pool is on disks separate from the root
>> filesystem, so if the root disks die this can be used to recover the
>> configuration).
>>
>> You may find this useful for backing up files like /etc/shadow.
>>
>> Here are the contents of /etc/backuppc/localhost.pl. Note that there are
>> some extraneous line wraps:
>> #
>> # Local server backup as user backuppc
>> #
>>
>> # dunno why it needs to ping
>> $Conf{PingCmd} = '/bin/true';
>>
>> $Conf{XferMethod} = 'tar';
>>
>> # let it back itself up anytime it wants to.
>> $Conf{BlackoutPeriods} = [];
>>
>> $Conf{TarShareName} = ['/'];
>>
>> $Conf{BackupFilesExclude} = ['/proc', '/sys', '/var/lib/backuppc',
>> '/var/log', '/tmp', '/var/tmp', '/mnt', '/media'];
>>
>> $Conf{TarClientCmd} = '/usr/bin/env LC_ALL=C /usr/bin/sudo $tarPath -c -v
>> -f
>> - -C $shareName --totals';
>>
>> # 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';
>>
>> # turning off compression on these files, so they can be recovered without
>> # backuppc.
>> # wouldn't make sense to need your backup server,
>> # in order to recover your backup server, now would it?
>> $Conf{CompressLevel} = 0;
>>
>>
>>
>> Here is the relevant line from /etc/sudoers, which gives the necessary
>> permissions:
>> # allow backuppc to run as root, in order to get all the files
>> backuppc ALL=NOPASSWD: /bin/tar
>>
>>
>> --
>> Carl Soderstrom
>> Systems Administrator
>> Real-Time Enterprises
>> www.real-time.com
>>
>>
>> --
>> Site24x7 APM Insight: Get Deep Visibility into Application Performance
>> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
>> Monitor end-to-end web transactions and take corrective actions now
>> Troubleshoot faster and improve end-user experience. Signup Now!
>> http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140
>> ___
>> BackupPC-users mailing list
>> BackupPC-users@lists.sourceforge.net
>> List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
>> Wiki:http://backuppc.wiki.sourceforge.net
>> Project: http://backuppc.sourceforge.net/
>>
>


-- 
David Rotger
--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] BackupPC_tarCreate failed

2016-01-15 Thread Carl Wilhelm Soderstrom
On 01/14 10:42 , David Rotger wrote:
> and now I can connect from user backuppc to localhost without password. And
> the restore work!!!

Glad you got things solved!
It seems strange to me, to use ssh to back up the local machine. Here's the
configuration I use in localhost.pl, to back up the BackupPC server itself.
This uses plain tar, running with sudo in order to get the necessary
permissions to back up all the files, even the ones owned by root.
(Note that the BackupPC data pool is on disks separate from the root
filesystem, so if the root disks die this can be used to recover the
configuration).

You may find this useful for backing up files like /etc/shadow.

Here are the contents of /etc/backuppc/localhost.pl. Note that there are
some extraneous line wraps:
#
# Local server backup as user backuppc
#

# dunno why it needs to ping
$Conf{PingCmd} = '/bin/true';

$Conf{XferMethod} = 'tar';

# let it back itself up anytime it wants to.
$Conf{BlackoutPeriods} = [];

$Conf{TarShareName} = ['/'];

$Conf{BackupFilesExclude} = ['/proc', '/sys', '/var/lib/backuppc',
'/var/log', '/tmp', '/var/tmp', '/mnt', '/media'];

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

# 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';

# turning off compression on these files, so they can be recovered without
# backuppc.
# wouldn't make sense to need your backup server, 
# in order to recover your backup server, now would it?
$Conf{CompressLevel} = 0;



Here is the relevant line from /etc/sudoers, which gives the necessary
permissions:
# allow backuppc to run as root, in order to get all the files
backuppc ALL=NOPASSWD: /bin/tar


-- 
Carl Soderstrom
Systems Administrator
Real-Time Enterprises
www.real-time.com

--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] BackupPC_tarCreate failed

2016-01-15 Thread David Rotger
Many thanks, tomorrow I will check the config. I'am using Debian 8 and
installed backuppc from repos. I have an external HD mount bind to
backuppc. It's strange the ssh
El 15/1/2016 22:56, "Carl Wilhelm Soderstrom" 
escribió:

> On 01/14 10:42 , David Rotger wrote:
> > and now I can connect from user backuppc to localhost without password.
> And
> > the restore work!!!
>
> Glad you got things solved!
> It seems strange to me, to use ssh to back up the local machine. Here's the
> configuration I use in localhost.pl, to back up the BackupPC server
> itself.
> This uses plain tar, running with sudo in order to get the necessary
> permissions to back up all the files, even the ones owned by root.
> (Note that the BackupPC data pool is on disks separate from the root
> filesystem, so if the root disks die this can be used to recover the
> configuration).
>
> You may find this useful for backing up files like /etc/shadow.
>
> Here are the contents of /etc/backuppc/localhost.pl. Note that there are
> some extraneous line wraps:
> #
> # Local server backup as user backuppc
> #
>
> # dunno why it needs to ping
> $Conf{PingCmd} = '/bin/true';
>
> $Conf{XferMethod} = 'tar';
>
> # let it back itself up anytime it wants to.
> $Conf{BlackoutPeriods} = [];
>
> $Conf{TarShareName} = ['/'];
>
> $Conf{BackupFilesExclude} = ['/proc', '/sys', '/var/lib/backuppc',
> '/var/log', '/tmp', '/var/tmp', '/mnt', '/media'];
>
> $Conf{TarClientCmd} = '/usr/bin/env LC_ALL=C /usr/bin/sudo $tarPath -c -v
> -f
> - -C $shareName --totals';
>
> # 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';
>
> # turning off compression on these files, so they can be recovered without
> # backuppc.
> # wouldn't make sense to need your backup server,
> # in order to recover your backup server, now would it?
> $Conf{CompressLevel} = 0;
>
>
>
> Here is the relevant line from /etc/sudoers, which gives the necessary
> permissions:
> # allow backuppc to run as root, in order to get all the files
> backuppc ALL=NOPASSWD: /bin/tar
>
>
> --
> Carl Soderstrom
> Systems Administrator
> Real-Time Enterprises
> www.real-time.com
>
>
> --
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140
> ___
> BackupPC-users mailing list
> BackupPC-users@lists.sourceforge.net
> List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
> Wiki:http://backuppc.wiki.sourceforge.net
> Project: http://backuppc.sourceforge.net/
>
--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] BackupPC_tarCreate failed

2016-01-14 Thread Les Mikesell
On Thu, Jan 14, 2016 at 4:39 AM, David Rotger  wrote:
> It's strange, because via web they do the backup and I can download the tar
> or zip archive. The problem is when I try to restore to the original
> destination/folder.
>

If you look down on the localhost web page there should be logs of
each restore attempt.  Those may tell you why it failed.  If you
aren't using ssh as root for the connection  like you would for other
hosts you may not have permission to write.

-- 
  Les Mikesell
lesmikes...@gmail.com

--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] BackupPC_tarCreate failed

2016-01-14 Thread Carl Wilhelm Soderstrom
On 01/14 07:14 , David Rotger wrote:
> when I type the command they exit to the help menú...
> 
> $ ./BackupPC_tarCreate -h localhost -n -4 -s /mnt/smb >
> /tmp/localhost_restore.tar

The '-4' is part of the problem. '-1' would be the last backup, no matter
its number. Otherwise you have to explicitly specify which backup number you
want to restore from (such as '4' for backup number 4).

-- 
Carl Soderstrom
Systems Administrator
Real-Time Enterprises
www.real-time.com

--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] BackupPC_tarCreate failed

2016-01-14 Thread Adam Goryachev


On 14/01/2016 17:14, David Rotger wrote:
> when I type the command they exit to the help menú...
>
> $ ./BackupPC_tarCreate -h localhost -n -4 -s /mnt/smb > 
> /tmp/localhost_restore.tar
> usage: ./BackupPC_tarCreate [options] files/directories...
Hi,

I think your usage is wrong, try this:

./BackupPC_tarCreate -h localhost -n -4 -s /mnt/smb / > 
/tmp/localhost_restore.tar

The extra / will represent which files/folders to restore, I haven't 
tested it, but I think it should work.

Regards,
Adam

--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] BackupPC_tarCreate failed

2016-01-14 Thread David Rotger
It's strange, because via web they do the backup and I can download the tar
or zip archive. The problem is when I try to restore to the original
destination/folder.


2016-01-14 11:14 GMT+01:00 David Rotger :

> I try your usage and they still exit to the help menú...
>
> it's requeried that /mnt/smb could be a samba share? because they don't,
> it's only a localhost folder that I want to backup.
>
> thanks.
>
> 2016-01-14 10:33 GMT+01:00 Adam Goryachev <
> mailingli...@websitemanagers.com.au>:
>
>>
>>
>> On 14/01/2016 17:14, David Rotger wrote:
>> > when I type the command they exit to the help menú...
>> >
>> > $ ./BackupPC_tarCreate -h localhost -n -4 -s /mnt/smb >
>> > /tmp/localhost_restore.tar
>> > usage: ./BackupPC_tarCreate [options] files/directories...
>> Hi,
>>
>> I think your usage is wrong, try this:
>>
>> ./BackupPC_tarCreate -h localhost -n -4 -s /mnt/smb / >
>> /tmp/localhost_restore.tar
>>
>> The extra / will represent which files/folders to restore, I haven't
>> tested it, but I think it should work.
>>
>> Regards,
>> Adam
>>
>>
>> --
>> Site24x7 APM Insight: Get Deep Visibility into Application Performance
>> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
>> Monitor end-to-end web transactions and take corrective actions now
>> Troubleshoot faster and improve end-user experience. Signup Now!
>> http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140
>> ___
>> BackupPC-users mailing list
>> BackupPC-users@lists.sourceforge.net
>> List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
>> Wiki:http://backuppc.wiki.sourceforge.net
>> Project: http://backuppc.sourceforge.net/
>>
>
>
>
> --
> David Rotger
>



-- 
David Rotger
--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] BackupPC_tarCreate failed

2016-01-14 Thread David Rotger
I try your usage and they still exit to the help menú...

it's requeried that /mnt/smb could be a samba share? because they don't,
it's only a localhost folder that I want to backup.

thanks.

2016-01-14 10:33 GMT+01:00 Adam Goryachev <
mailingli...@websitemanagers.com.au>:

>
>
> On 14/01/2016 17:14, David Rotger wrote:
> > when I type the command they exit to the help menú...
> >
> > $ ./BackupPC_tarCreate -h localhost -n -4 -s /mnt/smb >
> > /tmp/localhost_restore.tar
> > usage: ./BackupPC_tarCreate [options] files/directories...
> Hi,
>
> I think your usage is wrong, try this:
>
> ./BackupPC_tarCreate -h localhost -n -4 -s /mnt/smb / >
> /tmp/localhost_restore.tar
>
> The extra / will represent which files/folders to restore, I haven't
> tested it, but I think it should work.
>
> Regards,
> Adam
>
>
> --
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140
> ___
> BackupPC-users mailing list
> BackupPC-users@lists.sourceforge.net
> List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
> Wiki:http://backuppc.wiki.sourceforge.net
> Project: http://backuppc.sourceforge.net/
>



-- 
David Rotger
--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] BackupPC_tarCreate failed

2016-01-14 Thread Les Mikesell
On Thu, Jan 14, 2016 at 3:26 PM, David Rotger  wrote:
> Contents of file /var/lib/backuppc/pc/localhost/XferLOG.2.z, modified
> 2016-01-14 22:26:45
>
> Running: /usr/bin/env LC_ALL=C /bin/tar -c -v -f - -C /data --totals .
> full backup started for directory /data
> Xfer PIDs are now 23840,23839
> Total bytes written: 1832960 (1.8MiB, 27MiB/s)
>   create   777   0/0   0 .
>   pool 777   0/0 1823814 david1.bmp
> tarExtract: Done: 0 errors, 1 filesExist, 1823814 sizeExist, 42057
> sizeExistComp, 1 filesTotal, 1823814 sizeTotal
>

I looks like the backup command is not using ssh - or anything to get
root priviliges.  It should only backup files that are readable by the
backuppc user.

-- 
   Les Mikesell
lesmikes...@gmail.com

--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] BackupPC_tarCreate failed

2016-01-14 Thread David Rotger
The log file:

2016-01-14 20:46:45 restore started below directory /mnt/smb
2016-01-14 20:46:49 restore failed (BackupPC_tarCreate failed)



2016-01-14 20:47 GMT+01:00 David Rotger :

> No... they still show me the help menú. Only create a 0 bytes '
> localhost_restore.tar '
>
>
>
> 2016-01-14 18:23 GMT+01:00 Carl Wilhelm Soderstrom :
>
>> On 01/14 07:14 , David Rotger wrote:
>> > when I type the command they exit to the help menú...
>> >
>> > $ ./BackupPC_tarCreate -h localhost -n -4 -s /mnt/smb >
>> > /tmp/localhost_restore.tar
>>
>> The '-4' is part of the problem. '-1' would be the last backup, no matter
>> its number. Otherwise you have to explicitly specify which backup number
>> you
>> want to restore from (such as '4' for backup number 4).
>>
>> --
>> Carl Soderstrom
>> Systems Administrator
>> Real-Time Enterprises
>> www.real-time.com
>>
>>
>> --
>> Site24x7 APM Insight: Get Deep Visibility into Application Performance
>> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
>> Monitor end-to-end web transactions and take corrective actions now
>> Troubleshoot faster and improve end-user experience. Signup Now!
>> http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140
>> ___
>> BackupPC-users mailing list
>> BackupPC-users@lists.sourceforge.net
>> List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
>> Wiki:http://backuppc.wiki.sourceforge.net
>> Project: http://backuppc.sourceforge.net/
>>
>
>
>
> --
> David Rotger
>



-- 
David Rotger
--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] BackupPC_tarCreate failed

2016-01-14 Thread David Rotger
No... they still show me the help menú. Only create a 0 bytes '
localhost_restore.tar '



2016-01-14 18:23 GMT+01:00 Carl Wilhelm Soderstrom :

> On 01/14 07:14 , David Rotger wrote:
> > when I type the command they exit to the help menú...
> >
> > $ ./BackupPC_tarCreate -h localhost -n -4 -s /mnt/smb >
> > /tmp/localhost_restore.tar
>
> The '-4' is part of the problem. '-1' would be the last backup, no matter
> its number. Otherwise you have to explicitly specify which backup number
> you
> want to restore from (such as '4' for backup number 4).
>
> --
> Carl Soderstrom
> Systems Administrator
> Real-Time Enterprises
> www.real-time.com
>
>
> --
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140
> ___
> BackupPC-users mailing list
> BackupPC-users@lists.sourceforge.net
> List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
> Wiki:http://backuppc.wiki.sourceforge.net
> Project: http://backuppc.sourceforge.net/
>



-- 
David Rotger
--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] BackupPC_tarCreate failed

2016-01-14 Thread David Rotger
This is'nt a samba share, it's only a localhost folder. And they have 777
permissions.

2016-01-14 21:21 GMT+01:00 Les Mikesell :

> On Thu, Jan 14, 2016 at 2:03 PM, David Rotger 
> wrote:
> > This one?
> >
> > Contents of file /var/lib/backuppc/pc/localhost/RestoreLOG.22.z, modified
> > 2016-01-14 20:46:49 (Extracting only Errors)
> >
> > Running: /usr/bin/ssh -q -x -l root localhost env LC_ALL=C /bin/tar -x -p
> > --numeric-owner --same-owner -v -f - -C /mnt/smb
> > Running: /usr/share/backuppc/bin/BackupPC_tarCreate -h localhost -n 10 -s
> > /mnt/smb -t /david1.bmp
> > Xfer PIDs are now 22510,22511
> > Tar exited with error 65280 () status
> > restore failed: BackupPC_tarCreate failed
>
> Yes, that one - or the one that shows the whole thing, not just the
> errors.  I don't think you mentioned that this was an smb share which
> I'm guessing from the name.   Does root  have write access there or is
> this a read-only mount?   There may also be some quirks with tar
> trying to reproduce the original owner id since smb mounts typically
> just have one set of credentials.
>
> --
>Les Mikesell
>  lesmikes...@gmail.com
>
>
> --
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140
> ___
> BackupPC-users mailing list
> BackupPC-users@lists.sourceforge.net
> List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
> Wiki:http://backuppc.wiki.sourceforge.net
> Project: http://backuppc.sourceforge.net/
>



-- 
David Rotger
--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] BackupPC_tarCreate failed

2016-01-14 Thread Les Mikesell
On Thu, Jan 14, 2016 at 2:55 PM, David Rotger  wrote:
> Okey, seems that ssh works. I've changed the backup directory for /data and
> make a new backup. The error persist.
>
> P.D.: When I do the ssh from backuppc to root@localhost they prompy me a
> password, is normal!??!

No, if the keys are set up correctly you should not have a password
prompt.  Look at the log file for a successful backup run and see if
it is using a similar ssh command to start.

By the way, if you just want a single file you should be able to use
the backupPC_zcat command line tool just giving the path to the source
(in the pc/backup_number tree) and redirecting the output to the
destination file.

-- 
   Les Mikesell
 lesmikes...@gmail.com

--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] BackupPC_tarCreate failed

2016-01-14 Thread David Rotger
The user backuppc ask for a password when I try to conenct via ssh.


2016-01-14 22:06 GMT+01:00 Les Mikesell :

> On Thu, Jan 14, 2016 at 2:55 PM, David Rotger 
> wrote:
> > Okey, seems that ssh works. I've changed the backup directory for /data
> and
> > make a new backup. The error persist.
> >
> > P.D.: When I do the ssh from backuppc to root@localhost they prompy me a
> > password, is normal!??!
>
> No, if the keys are set up correctly you should not have a password
> prompt.  Look at the log file for a successful backup run and see if
> it is using a similar ssh command to start.
>
> By the way, if you just want a single file you should be able to use
> the backupPC_zcat command line tool just giving the path to the source
> (in the pc/backup_number tree) and redirecting the output to the
> destination file.
>
> --
>Les Mikesell
>  lesmikes...@gmail.com
>
>
> --
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140
> ___
> BackupPC-users mailing list
> BackupPC-users@lists.sourceforge.net
> List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
> Wiki:http://backuppc.wiki.sourceforge.net
> Project: http://backuppc.sourceforge.net/
>



-- 
David Rotger
--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] BackupPC_tarCreate failed

2016-01-14 Thread Michael Stowe
On 2016-01-14 14:55, David Rotger wrote:
> Okey, seems that ssh works. I've changed the backup directory for
> /data and make a new backup. The error persist.
> 
> P.D.: When I do the ssh from backuppc to root@localhost they prompy me
> a password, is normal!??!

It's one thing that causes the tar 65280() error, if that's what you're 
asking.

> Contents of file /var/lib/backuppc/pc/localhost/RestoreLOG.27.z,
> modified 2016-01-14 21:52:41 (Extracting only Errors)
> 
> Running: /usr/bin/ssh -q -x -l root localhost env LC_ALL=C /bin/tar -x
> -p --numeric-owner --same-owner -v -f - -C /data
> Running: /usr/share/backuppc/bin/BackupPC_tarCreate -h localhost -n 14
> -s /data -t /
> Xfer PIDs are now 23438,23439
> Tar exited with error 65280 () status
> restore failed: BackupPC_tarCreate failed

--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] BackupPC_tarCreate failed

2016-01-14 Thread Les Mikesell
On Thu, Jan 14, 2016 at 3:09 PM, David Rotger  wrote:
> The user backuppc ask for a password when I try to conenct via ssh.

Do you mean starting from user backuppc you are trying ssh
root@localhost?  If so, something is wrong.

Look at the top of the full log file for a successful backup run to
see if it is successfully executing that same 'ssh -l root ...' that
you saw in the restore log.   Maybe you configured some other way to
run the backups - I have seen instructions posted for doing that with
sudo instead since it is a little more efficient.   If you did that
instead of setting up ssh keys you'll need to do the same for the
restore command.

-- 
   Les Mikesell
 lesmikes...@gmail.com

--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] BackupPC_tarCreate failed

2016-01-14 Thread David Rotger
I do:

su backuppc
ssh root@localhost

They work but ask me the root password.

I can execute the comand ssh -l root...



2016-01-14 22:19 GMT+01:00 Les Mikesell :

> On Thu, Jan 14, 2016 at 3:09 PM, David Rotger 
> wrote:
> > The user backuppc ask for a password when I try to conenct via ssh.
>
> Do you mean starting from user backuppc you are trying ssh
> root@localhost?  If so, something is wrong.
>
> Look at the top of the full log file for a successful backup run to
> see if it is successfully executing that same 'ssh -l root ...' that
> you saw in the restore log.   Maybe you configured some other way to
> run the backups - I have seen instructions posted for doing that with
> sudo instead since it is a little more efficient.   If you did that
> instead of setting up ssh keys you'll need to do the same for the
> restore command.
>
> --
>Les Mikesell
>  lesmikes...@gmail.com
>
>
> --
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140
> ___
> BackupPC-users mailing list
> BackupPC-users@lists.sourceforge.net
> List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
> Wiki:http://backuppc.wiki.sourceforge.net
> Project: http://backuppc.sourceforge.net/
>



-- 
David Rotger
--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] BackupPC_tarCreate failed

2016-01-14 Thread David Rotger
Contents of file /var/lib/backuppc/pc/localhost/XferLOG.2.z, modified
2016-01-14 22:26:45

Running: /usr/bin/env LC_ALL=C /bin/tar -c -v -f - -C /data --totals .
full backup started for directory /data
Xfer PIDs are now 23840,23839
Total bytes written: 1832960 (1.8MiB, 27MiB/s)
  create   777   0/0   0 .
  pool 777   0/0 1823814 david1.bmp
tarExtract: Done: 0 errors, 1 filesExist, 1823814 sizeExist, 42057
sizeExistComp, 1 filesTotal, 1823814 sizeTotal


2016-01-14 22:24 GMT+01:00 David Rotger :

> I do:
>
> su backuppc
> ssh root@localhost
>
> They work but ask me the root password.
>
> I can execute the comand ssh -l root...
>
>
>
> 2016-01-14 22:19 GMT+01:00 Les Mikesell :
>
>> On Thu, Jan 14, 2016 at 3:09 PM, David Rotger 
>> wrote:
>> > The user backuppc ask for a password when I try to conenct via ssh.
>>
>> Do you mean starting from user backuppc you are trying ssh
>> root@localhost?  If so, something is wrong.
>>
>> Look at the top of the full log file for a successful backup run to
>> see if it is successfully executing that same 'ssh -l root ...' that
>> you saw in the restore log.   Maybe you configured some other way to
>> run the backups - I have seen instructions posted for doing that with
>> sudo instead since it is a little more efficient.   If you did that
>> instead of setting up ssh keys you'll need to do the same for the
>> restore command.
>>
>> --
>>Les Mikesell
>>  lesmikes...@gmail.com
>>
>>
>> --
>> Site24x7 APM Insight: Get Deep Visibility into Application Performance
>> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
>> Monitor end-to-end web transactions and take corrective actions now
>> Troubleshoot faster and improve end-user experience. Signup Now!
>> http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140
>> ___
>> BackupPC-users mailing list
>> BackupPC-users@lists.sourceforge.net
>> List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
>> Wiki:http://backuppc.wiki.sourceforge.net
>> Project: http://backuppc.sourceforge.net/
>>
>
>
>
> --
> David Rotger
>



-- 
David Rotger
--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] BackupPC_tarCreate failed

2016-01-14 Thread Les Mikesell
On Thu, Jan 14, 2016 at 2:25 PM, David Rotger  wrote:
> This is'nt a samba share, it's only a localhost folder. And they have 777
> permissions.

So you have a local folder named /mnt/smb that isn't used as a
mountpoint?  Seems unconventional, but OK.  I sort-of remember seeing
something like that where the file in question didn't exist in the
backup run selected but I can't recall the situation that let it
appear as one you could select in the web interface.  If that was from
an incremental, can you pick the file from a full run to see if there
is a difference?

-- 
   Les Mikesell
 lesmikes...@gmail.com

--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] BackupPC_tarCreate failed

2016-01-14 Thread David Rotger
Maybe a ssh problem?!?! when I do a ssh root@localhost, they prompt the
root password. It's correct?!?!


2016-01-14 21:25 GMT+01:00 David Rotger :

> This is'nt a samba share, it's only a localhost folder. And they have 777
> permissions.
>
> 2016-01-14 21:21 GMT+01:00 Les Mikesell :
>
>> On Thu, Jan 14, 2016 at 2:03 PM, David Rotger 
>> wrote:
>> > This one?
>> >
>> > Contents of file /var/lib/backuppc/pc/localhost/RestoreLOG.22.z,
>> modified
>> > 2016-01-14 20:46:49 (Extracting only Errors)
>> >
>> > Running: /usr/bin/ssh -q -x -l root localhost env LC_ALL=C /bin/tar -x
>> -p
>> > --numeric-owner --same-owner -v -f - -C /mnt/smb
>> > Running: /usr/share/backuppc/bin/BackupPC_tarCreate -h localhost -n 10
>> -s
>> > /mnt/smb -t /david1.bmp
>> > Xfer PIDs are now 22510,22511
>> > Tar exited with error 65280 () status
>> > restore failed: BackupPC_tarCreate failed
>>
>> Yes, that one - or the one that shows the whole thing, not just the
>> errors.  I don't think you mentioned that this was an smb share which
>> I'm guessing from the name.   Does root  have write access there or is
>> this a read-only mount?   There may also be some quirks with tar
>> trying to reproduce the original owner id since smb mounts typically
>> just have one set of credentials.
>>
>> --
>>Les Mikesell
>>  lesmikes...@gmail.com
>>
>>
>> --
>> Site24x7 APM Insight: Get Deep Visibility into Application Performance
>> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
>> Monitor end-to-end web transactions and take corrective actions now
>> Troubleshoot faster and improve end-user experience. Signup Now!
>> http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140
>> ___
>> BackupPC-users mailing list
>> BackupPC-users@lists.sourceforge.net
>> List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
>> Wiki:http://backuppc.wiki.sourceforge.net
>> Project: http://backuppc.sourceforge.net/
>>
>
>
>
> --
> David Rotger
>



-- 
David Rotger
--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] BackupPC_tarCreate failed

2016-01-14 Thread David Rotger
It's a full backup... :(

2016-01-14 21:39 GMT+01:00 Les Mikesell :

> On Thu, Jan 14, 2016 at 2:25 PM, David Rotger 
> wrote:
> > This is'nt a samba share, it's only a localhost folder. And they have 777
> > permissions.
>
> So you have a local folder named /mnt/smb that isn't used as a
> mountpoint?  Seems unconventional, but OK.  I sort-of remember seeing
> something like that where the file in question didn't exist in the
> backup run selected but I can't recall the situation that let it
> appear as one you could select in the web interface.  If that was from
> an incremental, can you pick the file from a full run to see if there
> is a difference?
>
> --
>Les Mikesell
>  lesmikes...@gmail.com
>
>
> --
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140
> ___
> BackupPC-users mailing list
> BackupPC-users@lists.sourceforge.net
> List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
> Wiki:http://backuppc.wiki.sourceforge.net
> Project: http://backuppc.sourceforge.net/
>



-- 
David Rotger
--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] BackupPC_tarCreate failed

2016-01-14 Thread Les Mikesell
On Thu, Jan 14, 2016 at 2:39 PM, David Rotger  wrote:
> Maybe a ssh problem?!?! when I do a ssh root@localhost, they prompt the root
> password. It's correct?!?!
>

If ssh wasn't working I don't think you would have any backups -
assuming they are done the same way.   To test the ssh key setting you
have to be running as the backuppc user, not root or some other user.
 Do an 'su -s /bin/bash - backuppc' first, then the ssh root@localhost
should work if your key setup is correct.

-- 
   Les Mikesell
 lesmikes...@gmail.com

--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] BackupPC_tarCreate failed

2016-01-14 Thread David Rotger
Okey, seems that ssh works. I've changed the backup directory for /data and
make a new backup. The error persist.

P.D.: When I do the ssh from backuppc to root@localhost they prompy me a
password, is normal!??!

Contents of file /var/lib/backuppc/pc/localhost/RestoreLOG.27.z, modified
2016-01-14 21:52:41 (Extracting only Errors)

Running: /usr/bin/ssh -q -x -l root localhost env LC_ALL=C /bin/tar -x
-p --numeric-owner --same-owner -v -f - -C /data
Running: /usr/share/backuppc/bin/BackupPC_tarCreate -h localhost -n 14
-s /data -t /
Xfer PIDs are now 23438,23439
Tar exited with error 65280 () status
restore failed: BackupPC_tarCreate failed



2016-01-14 21:45 GMT+01:00 Les Mikesell :

> On Thu, Jan 14, 2016 at 2:39 PM, David Rotger 
> wrote:
> > Maybe a ssh problem?!?! when I do a ssh root@localhost, they prompt the
> root
> > password. It's correct?!?!
> >
>
> If ssh wasn't working I don't think you would have any backups -
> assuming they are done the same way.   To test the ssh key setting you
> have to be running as the backuppc user, not root or some other user.
>  Do an 'su -s /bin/bash - backuppc' first, then the ssh root@localhost
> should work if your key setup is correct.
>
> --
>Les Mikesell
>  lesmikes...@gmail.com
>
>
> --
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140
> ___
> BackupPC-users mailing list
> BackupPC-users@lists.sourceforge.net
> List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
> Wiki:http://backuppc.wiki.sourceforge.net
> Project: http://backuppc.sourceforge.net/
>



-- 
David Rotger
--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] BackupPC_tarCreate failed

2016-01-14 Thread Les Mikesell
On Thu, Jan 14, 2016 at 1:48 PM, David Rotger  wrote:
> The log file:
>
> 2016-01-14 20:46:45 restore started below directory /mnt/smb
> 2016-01-14 20:46:49 restore failed (BackupPC_tarCreate failed)
>

That looks like the main log file.  There should be a more detailed
one for each restore you have attempted - just like there is one for
each backup run.

-- 
   Les Mikesell
 lesmikes...@gmail.com

--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] BackupPC_tarCreate failed

2016-01-14 Thread David Rotger
This one?

Contents of file /var/lib/backuppc/pc/localhost/RestoreLOG.22.z, modified
2016-01-14 20:46:49 (Extracting only Errors)

Running: /usr/bin/ssh -q -x -l root localhost env LC_ALL=C /bin/tar -x
-p --numeric-owner --same-owner -v -f - -C /mnt/smb
Running: /usr/share/backuppc/bin/BackupPC_tarCreate -h localhost -n 10
-s /mnt/smb -t /david1.bmp
Xfer PIDs are now 22510,22511
Tar exited with error 65280 () status
restore failed: BackupPC_tarCreate failed


2016-01-14 20:58 GMT+01:00 Les Mikesell :

> On Thu, Jan 14, 2016 at 1:48 PM, David Rotger 
> wrote:
> > The log file:
> >
> > 2016-01-14 20:46:45 restore started below directory /mnt/smb
> > 2016-01-14 20:46:49 restore failed (BackupPC_tarCreate failed)
> >
>
> That looks like the main log file.  There should be a more detailed
> one for each restore you have attempted - just like there is one for
> each backup run.
>
> --
>Les Mikesell
>  lesmikes...@gmail.com
>
>
> --
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140
> ___
> BackupPC-users mailing list
> BackupPC-users@lists.sourceforge.net
> List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
> Wiki:http://backuppc.wiki.sourceforge.net
> Project: http://backuppc.sourceforge.net/
>



-- 
David Rotger
--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] BackupPC_tarCreate failed

2016-01-14 Thread Les Mikesell
On Thu, Jan 14, 2016 at 2:03 PM, David Rotger  wrote:
> This one?
>
> Contents of file /var/lib/backuppc/pc/localhost/RestoreLOG.22.z, modified
> 2016-01-14 20:46:49 (Extracting only Errors)
>
> Running: /usr/bin/ssh -q -x -l root localhost env LC_ALL=C /bin/tar -x -p
> --numeric-owner --same-owner -v -f - -C /mnt/smb
> Running: /usr/share/backuppc/bin/BackupPC_tarCreate -h localhost -n 10 -s
> /mnt/smb -t /david1.bmp
> Xfer PIDs are now 22510,22511
> Tar exited with error 65280 () status
> restore failed: BackupPC_tarCreate failed

Yes, that one - or the one that shows the whole thing, not just the
errors.  I don't think you mentioned that this was an smb share which
I'm guessing from the name.   Does root  have write access there or is
this a read-only mount?   There may also be some quirks with tar
trying to reproduce the original owner id since smb mounts typically
just have one set of credentials.

-- 
   Les Mikesell
 lesmikes...@gmail.com

--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] BackupPC_tarCreate failed

2016-01-14 Thread David Rotger
YES!!

I solved

It was a problem with ssh. Sorry for my english. I do:

su backuppc
ssh-keygen -t rsa
exit
cp ~backuppc/.ssh/id_rsa.pub ~root/.ssh/authorized_keys2

and now I can connect from user backuppc to localhost without password. And
the restore work!!!

Thanks!



2016-01-14 22:26 GMT+01:00 David Rotger :

> Contents of file /var/lib/backuppc/pc/localhost/XferLOG.2.z, modified
> 2016-01-14 22:26:45
>
> Running: /usr/bin/env LC_ALL=C /bin/tar -c -v -f - -C /data --totals .
> full backup started for directory /data
> Xfer PIDs are now 23840,23839
> Total bytes written: 1832960 (1.8MiB, 27MiB/s)
>   create   777   0/0   0 .
>   pool 777   0/0 1823814 david1.bmp
> tarExtract: Done: 0 errors, 1 filesExist, 1823814 sizeExist, 42057 
> sizeExistComp, 1 filesTotal, 1823814 sizeTotal
>
>
> 2016-01-14 22:24 GMT+01:00 David Rotger :
>
>> I do:
>>
>> su backuppc
>> ssh root@localhost
>>
>> They work but ask me the root password.
>>
>> I can execute the comand ssh -l root...
>>
>>
>>
>> 2016-01-14 22:19 GMT+01:00 Les Mikesell :
>>
>>> On Thu, Jan 14, 2016 at 3:09 PM, David Rotger 
>>> wrote:
>>> > The user backuppc ask for a password when I try to conenct via ssh.
>>>
>>> Do you mean starting from user backuppc you are trying ssh
>>> root@localhost?  If so, something is wrong.
>>>
>>> Look at the top of the full log file for a successful backup run to
>>> see if it is successfully executing that same 'ssh -l root ...' that
>>> you saw in the restore log.   Maybe you configured some other way to
>>> run the backups - I have seen instructions posted for doing that with
>>> sudo instead since it is a little more efficient.   If you did that
>>> instead of setting up ssh keys you'll need to do the same for the
>>> restore command.
>>>
>>> --
>>>Les Mikesell
>>>  lesmikes...@gmail.com
>>>
>>>
>>> --
>>> Site24x7 APM Insight: Get Deep Visibility into Application Performance
>>> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
>>> Monitor end-to-end web transactions and take corrective actions now
>>> Troubleshoot faster and improve end-user experience. Signup Now!
>>> http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140
>>> ___
>>> BackupPC-users mailing list
>>> BackupPC-users@lists.sourceforge.net
>>> List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
>>> Wiki:http://backuppc.wiki.sourceforge.net
>>> Project: http://backuppc.sourceforge.net/
>>>
>>
>>
>>
>> --
>> David Rotger
>>
>
>
>
> --
> David Rotger
>



-- 
David Rotger
--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] BackupPC_tarCreate failed

2016-01-13 Thread Carl Wilhelm Soderstrom
On 01/13 07:54 , David Rotger wrote:
> because when I try to restore a localhost backup I get this error!?!?
> 
> BackupPC_tarCreate failed

Can you paste the command you're using when you get this error?
Are there any other messages?
Just copy and paste the sequence of commands leading up to this, and any
resulting output.


-- 
Carl Soderstrom
Systems Administrator
Real-Time Enterprises
www.real-time.com

--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] BackupPC_tarCreate failed

2016-01-13 Thread Carl Wilhelm Soderstrom
On 01/13 08:51 , David Rotger wrote:
> I use the web interface, when I restore a TAR localhost bakcup, in the
> status section I see:
> 
> localhost  restore
> root 2016-01-13
> 20:00 2016-01-13 19:53
> BackupPC_tarCreate failed

Ok, now's the time to learn to use the command line tools to troubleshoot
problems with BackupPC. The BackupPC_tarCreate command is actually this:

backuppc@archivist-2:~$ /usr/share/backuppc/bin/BackupPC_tarCreate --help
/usr/share/backuppc/bin/BackupPC_tarCreate version [unknown] calling
Getopt::Std::getopts (version 1.07 [paranoid]),
running under Perl version 5.18.2.

Usage: BackupPC_tarCreate [-OPTIONS [-MORE_OPTIONS]] [--] [PROGRAM_ARG1 ...]

The following single-character options are accepted:
With arguments: -e -h -n -p -r -s -b -w
Boolean (without arguments): -L -l -t

Options may be merged together.  -- stops processing of options.
Space is not required between options and their arguments.
  [Now continuing due to backward compatibility and excessive paranoia.
   See 'perldoc Getopt::Std' about $Getopt::Std::STANDARD_HELP_VERSION.]
usage: /usr/share/backuppc/bin/BackupPC_tarCreate [options]
files/directories...
  Required options:
 -h host host from which the tar archive is created
 -n dumpNum  dump number from which the tar archive is created
 A negative number means relative to the end (eg -1
 means the most recent dump, -2 2nd most recent etc).
 -s shareNameshare name from which the tar archive is created

  Other options:
 -t  print summary totals
 -r pathRemove   path prefix that will be replaced with pathAdd
 -p pathAdd  new path prefix
 -b BLOCKS   output write buffer size in 512-byte blocks (default
20; same as tar)
 -w readBufSzbuffer size for reading files (default 1048576 = 1MB)
 -e charset  charset for encoding file names (default: value of
 $Conf{ClientCharset} when backup was done)
 -l  just print a file listing; don't generate an archive
 -L  just print a detailed file listing; don't generate an
archive


So an actual command would look something like this below, where:
-h localhost == the host to restore from
-n -1 == the most recent backup (or you could look at the list of backup
numbers in the web interface to find the backup from a particular date)
-s / == the share to restore from (in the case of a Windows box it might be
'cDrive' or something like that)
/ == the files to restore. in this case, all the files from the root
directory onward

/usr/share/backuppc/bin/BackupPC_tarCreate -h localhost -n -1 -s / /

Note however that this will dump the tar stream straight to STDOUT (i.e.
your terminal). So you'll have to redirect that or stream it elsewhere.
Here's an example of creating a tarball in your current directory (make sure
there's enough space first, using 'df -h').

/usr/share/backuppc/bin/BackupPC_tarCreate \
-h localhost -n -1 -s / / >  localhost_restore-2016-01-13.tar

I stuck the '\' in there just because your mail client may wrap lines, and I
wanted to be clear that this is all one line of command.

Or if you'd like to move the backup across the network, you can pipe the
output of BackupPC_tarCreate through netcat and move it to some other
machine without having to put it on the local disk first.

/usr/share/backuppc/bin/BackupPC_tarCreate \
-h localhost -n -1 -s / / | nc host.example.com  

On the receiving side, you'd have a netcat process listening and piping the
output to tar, which in the example below will dump the files out onto the
filesystem in the current directory.

nc -l  | tar xvpf - 


Experiment with all these a bit, and see what errors you get when you try to
run a really simple restore command like this:

/usr/share/backuppc/bin/BackupPC_tarCreate \
-h localhost -n -1 -s / /etc > /dev/null

To be clear, you don't have to break the above into two lines, and you don't
need the '\' if you don't break it into two lines, that's just for clarity
since I don't know how your mail client will format that line. Also the
redirection to /dev/null is just so your screen and filesystem don't get
filled up while you figure out what may be wrong. If you like you can
redirect to a file.

Sorry if some of this is very low-level, I don't know what your skill level
is.

-- 
Carl Soderstrom
Systems Administrator
Real-Time Enterprises
www.real-time.com

--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140
___

Re: [BackupPC-users] BackupPC_tarCreate failed

2016-01-13 Thread Andreas Piening
Please take a look at Server > LOG file in the web interface. The bottom lines 
should give you some more information on what exactly caused the failure.

> Am 13.01.2016 um 20:51 schrieb David Rotger :
> 
> Hi Carl,
> 
> I use the web interface, when I restore a TAR localhost bakcup, in the status 
> section I see:
> 
> localhost restore 
> root <> 2016-01-13 20:002016-01-13 19:53
> BackupPC_tarCreate failed 

--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] BackupPC_tarCreate failed

2016-01-13 Thread Les Mikesell
On Wed, Jan 13, 2016 at 1:51 PM, David Rotger  wrote:

> Hi Carl,
>
> I use the web interface, when I restore a TAR localhost bakcup, in the
> status section I see:
>
> localhost  restore
> root 2016-01-13 20:00 2016-01-13 19:53
> BackupPC_tarCreate failed
>
>
Are you using ssh to connect as root to localhost like you would another
client or have you set up some other mechanism to get the appropriate
privileges?

-- 
   Les Mikesell
 lesmikes...@gmail.com
--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] BackupPC_tarCreate failed

2016-01-13 Thread David Rotger
Hi Carl,

I use the web interface, when I restore a TAR localhost bakcup, in the
status section I see:

localhost  restore
root 2016-01-13
20:00 2016-01-13 19:53
BackupPC_tarCreate failed

2016-01-13 20:43 GMT+01:00 Carl Wilhelm Soderstrom :

> On 01/13 07:54 , David Rotger wrote:
> > because when I try to restore a localhost backup I get this error!?!?
> >
> > BackupPC_tarCreate failed
>
> Can you paste the command you're using when you get this error?
> Are there any other messages?
> Just copy and paste the sequence of commands leading up to this, and any
> resulting output.
>
>
> --
> Carl Soderstrom
> Systems Administrator
> Real-Time Enterprises
> www.real-time.com
>
>
> --
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140
> ___
> BackupPC-users mailing list
> BackupPC-users@lists.sourceforge.net
> List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
> Wiki:http://backuppc.wiki.sourceforge.net
> Project: http://backuppc.sourceforge.net/
>



-- 
David Rotger
--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] BackupPC_tarCreate failed

2016-01-13 Thread David Rotger
when I type the command they exit to the help menú...

$ ./BackupPC_tarCreate -h localhost -n -4 -s /mnt/smb >
/tmp/localhost_restore.tar
usage: ./BackupPC_tarCreate [options] files/directories...
  Required options:
 -h host host from which the tar archive is created
 -n dumpNum  dump number from which the tar archive is created
 A negative number means relative to the end (eg -1
 means the most recent dump, -2 2nd most recent etc).
 -s shareNameshare name from which the tar archive is created

  Other options:
 -t  print summary totals
 -r pathRemove   path prefix that will be replaced with pathAdd
 -p pathAdd  new path prefix
 -b BLOCKS   output write buffer size in 512-byte blocks (default
20; same as tar)
 -w readBufSzbuffer size for reading files (default 1048576 = 1MB)
 -e charset  charset for encoding file names (default: value of
 $Conf{ClientCharset} when backup was done)
 -l  just print a file listing; don't generate an archive
 -L  just print a detailed file listing; don't generate an
archive
$

2016-01-14 0:08 GMT+01:00 Adam Goryachev <
mailingli...@websitemanagers.com.au>:

> On 14/01/16 09:58, David Rotger wrote:
> > And the command with backuppc user says:
> >
> > $ ./BackupPC_tarCreate -h localhost -n -4 -s /mnt/smb >
> > localhost_restore.tar
> > -su: 10: cannot create localhost_restore.tar: Permission denied
> >
>
> Try this:
> $ ./BackupPC_tarCreate -h localhost -n -4 -s /mnt/smb >
> /tmp/localhost_restore.tar
>
> You should have permission to write in /tmp/ but make sure you have
> enough space there first:
> df -H /tmp
>
> Regards,
> Adam
>
> --
> Adam Goryachev
> Website Managers
> P: +61 2 8304 a...@websitemanagers.com.au
> F: +61 2 8304 0001 www.websitemanagers.com.au
>
>
> --
> Adam Goryachev Website Managers www.websitemanagers.com.au
>
>
> --
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140
> ___
> BackupPC-users mailing list
> BackupPC-users@lists.sourceforge.net
> List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
> Wiki:http://backuppc.wiki.sourceforge.net
> Project: http://backuppc.sourceforge.net/
>



-- 
David Rotger
--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] BackupPC_tarCreate failed

2016-01-13 Thread David Rotger
And the command with backuppc user says:

$ ./BackupPC_tarCreate -h localhost -n -4 -s /mnt/smb >
localhost_restore.tar
-su: 10: cannot create localhost_restore.tar: Permission denied


2016-01-13 23:45 GMT+01:00 David Rotger :

> Yes, if I do ' su - backuppc ' the command work. Now in the host
> configuration for localhost I put the ' backuppc ' user. But when I try to
> restore, the error comes again...
>
>
>
> 2016-01-13 23:37 GMT+01:00 Carl Wilhelm Soderstrom :
>
>> On 01/13 11:17 , David Rotger wrote:
>> > root@RFSERVER2:/usr/share/backuppc/bin# ./BackupPC_tarCreate
>> > ./BackupPC_tarCreate: Wrong user: my userid is 0, instead of 111
>> (backuppc)
>> > Please su backuppc first
>> > BackupPC::Lib->new failed
>> > root@RFSERVER2:/usr/share/backuppc/bin#
>>
>> Sorry, I meant to mention that (as the error explains above) you need to
>> be
>> the 'backuppc' user instead of 'root' for most of the commands to work.
>>
>> So do 'su - backuppc', or if that fails, do 'su - backuppc -s /bin/bash'
>> (presuming that /bin/bash is the path to your bash executable file).
>>
>> --
>> Carl Soderstrom
>> Systems Administrator
>> Real-Time Enterprises
>> www.real-time.com
>>
>>
>> --
>> Site24x7 APM Insight: Get Deep Visibility into Application Performance
>> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
>> Monitor end-to-end web transactions and take corrective actions now
>> Troubleshoot faster and improve end-user experience. Signup Now!
>> http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140
>> ___
>> BackupPC-users mailing list
>> BackupPC-users@lists.sourceforge.net
>> List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
>> Wiki:http://backuppc.wiki.sourceforge.net
>> Project: http://backuppc.sourceforge.net/
>>
>
>
>
> --
> David Rotger
>



-- 
David Rotger
--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] BackupPC_tarCreate failed

2016-01-13 Thread David Rotger
The log file says:

2016-01-13 19:53:46 User backuppc requested restore to localhost
 (localhost
)
2016-01-13 19:53:46 Started restore on localhost
 (pid=10366)
2016-01-13 19:53:50 Restore failed on localhost
 (BackupPC_tarCreate
failed)

And the command:


root@RFSERVER2:/usr/share/backuppc/bin# ./BackupPC_tarCreate
./BackupPC_tarCreate: Wrong user: my userid is 0, instead of 111 (backuppc)
Please su backuppc first
BackupPC::Lib->new failed
root@RFSERVER2:/usr/share/backuppc/bin#



2016-01-13 21:27 GMT+01:00 Carl Wilhelm Soderstrom :

> On 01/13 08:51 , David Rotger wrote:
> > I use the web interface, when I restore a TAR localhost bakcup, in the
> > status section I see:
> >
> > localhost  restore
> > root 2016-01-13
> > 20:00 2016-01-13 19:53
> > BackupPC_tarCreate failed
>
> Ok, now's the time to learn to use the command line tools to troubleshoot
> problems with BackupPC. The BackupPC_tarCreate command is actually this:
>
> backuppc@archivist-2:~$ /usr/share/backuppc/bin/BackupPC_tarCreate --help
> /usr/share/backuppc/bin/BackupPC_tarCreate version [unknown] calling
> Getopt::Std::getopts (version 1.07 [paranoid]),
> running under Perl version 5.18.2.
>
> Usage: BackupPC_tarCreate [-OPTIONS [-MORE_OPTIONS]] [--] [PROGRAM_ARG1
> ...]
>
> The following single-character options are accepted:
> With arguments: -e -h -n -p -r -s -b -w
> Boolean (without arguments): -L -l -t
>
> Options may be merged together.  -- stops processing of options.
> Space is not required between options and their arguments.
>   [Now continuing due to backward compatibility and excessive paranoia.
>See 'perldoc Getopt::Std' about $Getopt::Std::STANDARD_HELP_VERSION.]
> usage: /usr/share/backuppc/bin/BackupPC_tarCreate [options]
> files/directories...
>   Required options:
>  -h host host from which the tar archive is created
>  -n dumpNum  dump number from which the tar archive is created
>  A negative number means relative to the end (eg -1
>  means the most recent dump, -2 2nd most recent etc).
>  -s shareNameshare name from which the tar archive is created
>
>   Other options:
>  -t  print summary totals
>  -r pathRemove   path prefix that will be replaced with pathAdd
>  -p pathAdd  new path prefix
>  -b BLOCKS   output write buffer size in 512-byte blocks (default
> 20; same as tar)
>  -w readBufSzbuffer size for reading files (default 1048576 = 1MB)
>  -e charset  charset for encoding file names (default: value of
>  $Conf{ClientCharset} when backup was done)
>  -l  just print a file listing; don't generate an archive
>  -L  just print a detailed file listing; don't generate an
> archive
>
>
> So an actual command would look something like this below, where:
> -h localhost == the host to restore from
> -n -1 == the most recent backup (or you could look at the list of backup
> numbers in the web interface to find the backup from a particular date)
> -s / == the share to restore from (in the case of a Windows box it might be
> 'cDrive' or something like that)
> / == the files to restore. in this case, all the files from the root
> directory onward
>
> /usr/share/backuppc/bin/BackupPC_tarCreate -h localhost -n -1 -s / /
>
> Note however that this will dump the tar stream straight to STDOUT (i.e.
> your terminal). So you'll have to redirect that or stream it elsewhere.
> Here's an example of creating a tarball in your current directory (make
> sure
> there's enough space first, using 'df -h').
>
> /usr/share/backuppc/bin/BackupPC_tarCreate \
> -h localhost -n -1 -s / / >  localhost_restore-2016-01-13.tar
>
> I stuck the '\' in there just because your mail client may wrap lines, and
> I
> wanted to be clear that this is all one line of command.
>
> Or if you'd like to move the backup across the network, you can pipe the
> output of BackupPC_tarCreate through netcat and move it to some other
> machine without having to put it on the local disk first.
>
> /usr/share/backuppc/bin/BackupPC_tarCreate \
> -h localhost -n -1 -s / / | nc host.example.com 
>
> On the receiving side, you'd have a netcat process listening and piping the
> output to tar, which in the example below will dump the files out onto the
> filesystem in the current directory.
>
> nc -l  | tar xvpf -
>
>
> Experiment with all these a bit, and see what errors you get when you try
> to
> run a really simple restore command like this:
>
> /usr/share/backuppc/bin/BackupPC_tarCreate \
> -h localhost -n -1 -s / /etc > /dev/null
>
> To be clear, you don't have to break the above into two lines, and 

Re: [BackupPC-users] BackupPC_tarCreate failed

2016-01-13 Thread Adam Goryachev
On 14/01/16 09:37, Carl Wilhelm Soderstrom wrote:
> On 01/13 11:17 , David Rotger wrote:
>> root@RFSERVER2:/usr/share/backuppc/bin# ./BackupPC_tarCreate
>> ./BackupPC_tarCreate: Wrong user: my userid is 0, instead of 111 (backuppc)
>> Please su backuppc first
>> BackupPC::Lib->new failed
>> root@RFSERVER2:/usr/share/backuppc/bin#
> Sorry, I meant to mention that (as the error explains above) you need to be
> the 'backuppc' user instead of 'root' for most of the commands to work.
>
> So do 'su - backuppc', or if that fails, do 'su - backuppc -s /bin/bash'
> (presuming that /bin/bash is the path to your bash executable file).
>
Or login to the webpage, navigate to the localhost and below the list of 
backups you should have the Restore Summary. Click the "Restore #" link, 
and it should show the detailed log of what happened. Please post that 
full log.

Regards,
Adam

-- 
Adam Goryachev Website Managers www.websitemanagers.com.au

--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] BackupPC_tarCreate failed

2016-01-13 Thread Adam Goryachev
On 14/01/16 09:58, David Rotger wrote:
> And the command with backuppc user says:
>
> $ ./BackupPC_tarCreate -h localhost -n -4 -s /mnt/smb >
> localhost_restore.tar
> -su: 10: cannot create localhost_restore.tar: Permission denied
>

Try this:
$ ./BackupPC_tarCreate -h localhost -n -4 -s /mnt/smb > 
/tmp/localhost_restore.tar

You should have permission to write in /tmp/ but make sure you have 
enough space there first:
df -H /tmp

Regards,
Adam

-- 
Adam Goryachev
Website Managers
P: +61 2 8304 a...@websitemanagers.com.au
F: +61 2 8304 0001 www.websitemanagers.com.au


-- 
Adam Goryachev Website Managers www.websitemanagers.com.au

--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] BackupPC_tarCreate failed

2016-01-13 Thread Carl Wilhelm Soderstrom
On 01/13 11:17 , David Rotger wrote:
> root@RFSERVER2:/usr/share/backuppc/bin# ./BackupPC_tarCreate
> ./BackupPC_tarCreate: Wrong user: my userid is 0, instead of 111 (backuppc)
> Please su backuppc first
> BackupPC::Lib->new failed
> root@RFSERVER2:/usr/share/backuppc/bin#

Sorry, I meant to mention that (as the error explains above) you need to be
the 'backuppc' user instead of 'root' for most of the commands to work.

So do 'su - backuppc', or if that fails, do 'su - backuppc -s /bin/bash'
(presuming that /bin/bash is the path to your bash executable file).

-- 
Carl Soderstrom
Systems Administrator
Real-Time Enterprises
www.real-time.com

--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] BackupPC_tarCreate failed

2016-01-13 Thread David Rotger
Yes, if I do ' su - backuppc ' the command work. Now in the host
configuration for localhost I put the ' backuppc ' user. But when I try to
restore, the error comes again...



2016-01-13 23:37 GMT+01:00 Carl Wilhelm Soderstrom :

> On 01/13 11:17 , David Rotger wrote:
> > root@RFSERVER2:/usr/share/backuppc/bin# ./BackupPC_tarCreate
> > ./BackupPC_tarCreate: Wrong user: my userid is 0, instead of 111
> (backuppc)
> > Please su backuppc first
> > BackupPC::Lib->new failed
> > root@RFSERVER2:/usr/share/backuppc/bin#
>
> Sorry, I meant to mention that (as the error explains above) you need to be
> the 'backuppc' user instead of 'root' for most of the commands to work.
>
> So do 'su - backuppc', or if that fails, do 'su - backuppc -s /bin/bash'
> (presuming that /bin/bash is the path to your bash executable file).
>
> --
> Carl Soderstrom
> Systems Administrator
> Real-Time Enterprises
> www.real-time.com
>
>
> --
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140
> ___
> BackupPC-users mailing list
> BackupPC-users@lists.sourceforge.net
> List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
> Wiki:http://backuppc.wiki.sourceforge.net
> Project: http://backuppc.sourceforge.net/
>



-- 
David Rotger
--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/