BackupPC-users

Re: [BackupPC-users] Backup to same computer

2010-01-21 10:05:55
Subject: Re: [BackupPC-users] Backup to same computer
From: Adam Goryachev <mailinglists AT websitemanagers.com DOT au>
To: gayleard AT eircom DOT net, "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Fri, 22 Jan 2010 02:03:56 +1100
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Timothy Murphy wrote:
> Tino Schwarze wrote:
> 
>> On Thu, Jan 21, 2010 at 02:43:11AM +0000, Timothy Murphy wrote:
>>
>>> What is the best way to backup a folder -
>>> in fact, my mail folder /home/tim/Maildir -
>>> with backuppc running on the same computer?
>>>
>>> I assume that I need to allow backuppc to read this folder?
>> The easiest approach is
>> a) install an rsyncd which allows only local connects
>> b) threat your local machine just like any other server and use
>> ssh/rsync with public-key authentication
>>
>> Tino, using b).
> 
> Thanks for your comment.
> I take it from your final remark that (a) and (b)
> are alternative methods?
> 
> I tried (b), as far as I understood it, but without success.
> I added my id_rsa.pub to backuppc's .ssh/authorized_keys
> so that when I run as backuppc on this machine ("helen")
> I can access my account with
>       ssh -l tim helen .

backuppc needs the private id_rsa file in it's .ssh directory. You need
to add the id_rsa.pub to tim's .ssh/authorized_keys file on helen...

> However, when I try to backup /home/tim/Maildir/
> I fail with the usual "4 bytes" failure:
> -----------------------------------
> 2010-01-21 14:14:19 full backup started for directory /home/tim/Maildir/
> 2010-01-21 14:14:20 Got fatal error during xfer (Unable to read 4 bytes)
> 2010-01-21 14:14:25 Backup aborted (Unable to read 4 bytes)
> -----------------------------------
> 
> Could you say precisely what you did to get this working, please.
> 

Try making sure you can login as the backuppc user and do "ssh -l tim
helen id" and get just the string "tim" back.... You need to do that
once manually anyway to accept the SSH host key for backuppc user.

Hope that helps.

Regards,
Adam
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAktYbNwACgkQGyoxogrTyiXgnACfXL9o261mETRAeymHEkYOaLl8
pykAoKTncF8eP7ht3hLc1Qq8GkO1FI0/
=JBrQ
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/