public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Joost Roeleveld <joost@antarean.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] {OT} rdiff-backup: push or pull?
Date: Sun, 21 Aug 2011 21:10:05 +0200	[thread overview]
Message-ID: <1501728.2ZHPtJWtlY@eve> (raw)
In-Reply-To: <CAN0CFw2zZDcWttCBE+PiFSMpST9PMydwLVmC2EnfUqN4C5oxuQ@mail.gmail.com>

On Friday, August 19, 2011 10:35:10 AM Grant wrote:
> >> >> I'm setting up an automated rdiff-backup system and I'm stuck
> >> >> between
> >> >> pushing the backups to the backup server, and pulling the
> >> >> backups to
> >> >> the backup server.  If I push, I have to allow read/write access
> >> >> of my backups via SSH keys.  If I pull, I have to enable root
> >> >> logins on each system to be backed-up, allow root read access
> >> >> of each system via SSH keys, and I have to deal with openvpn or
> >> >> ssh -R so my laptop can back up from behind foreign routers.
> >> >>  The conventional wisdom online seems to indicate pulling is
> >> >> better, but pushing seems like it might be better to me.  Do
> >> >> you push or pull?
> >> > 
> >> > I would push, to be honest.
> >> 
> >> What can be done about the fact that any attacker who can break into a
> >> system and wipe it out can also wipe out its backups?  That negates
> >> one of the reasons for making the backups in the first place.
> > 
> > True, except if, after a backup is finished, you move the actual backup
> > to a different location. (Or you backup the backup server)
> 
> I do back up the backup server to another system via rsync, but if the
> backups on the backup server are wiped out, rsync will wipe them out
> on the other system too.

Why not use a different backup tool that doesn't have this possible problem?
Rsync will clear the target is the source is emptied as well. Not sure if this 
can be prevented.

> > I store all important files on my server and the backups there can not
> > be
> > accessed from the fileserver itself. (That backup is done in "pull" mode
> > every night.)
> 
> I thought you were in favor of "pushing"?  How do you back up to a
> system that can't access the backups?

I am, when it comes to backing up desktops. The server is actually a xen-host 
with multiple xen-domains running on it.

I found it easier to have the host determine the backups. The sequence of 
steps is basically as follows:
1) host tells domain to stop service(s)
2) host tells domain to unmount filesystem
3) hosts disconnects filesystem from domain
4) host creates snapshot (LVM)
5) host reconnect filesystem to domain
6) host tells domain to remount filesystem
7) host tells domain to stop service(s)
8) host backs up snapshot
9) host deletes snapshot

I couldn't do a push-system for the virtual machines as I didn't want to 
expose the host.

> >> Should private SSH keys be excluded from the backup?  Should anything
> >> else be excluded?
> > 
> > When a host is compromised, the corresponding entries in the
> > "authorized_keys" should be removed from all other servers/hosts. This
> > will make those private keys useless.
> 
> So it's OK to back up a private key to another system?  I just want to
> make sure I'm not breaking a "good admin" rule by doing this.

Yes, I don't see any problem with that.
If the backup-server is compromised via a compromised other system, the keys 
on that system are compromised already anyway.

I don't have private keys without passphrase apart from the one the host uses 
to send commands to the virtual machines. And the host can't be accessed by 
remote.

--
Joost



  reply	other threads:[~2011-08-21 19:11 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-16  4:58 [gentoo-user] {OT} rdiff-backup: push or pull? Grant
2011-08-16  6:35 ` Joost Roeleveld
2011-08-16 23:50   ` Grant
2011-08-17  6:07     ` Joost Roeleveld
2011-08-17 17:18       ` Grant
2011-08-18  6:13         ` Joost Roeleveld
2011-08-19  1:01           ` Grant
2011-08-19  6:07             ` Joost Roeleveld
2011-08-19 17:13               ` Grant
2011-08-17  6:14     ` Joost Roeleveld
2011-08-17 17:35       ` Grant
2011-08-19 17:14         ` Michael Orlitzky
2011-08-19 18:00           ` Grant
2011-08-19 19:06             ` Michael Orlitzky
2011-08-19 19:58               ` Grant
2011-08-20  8:12                 ` Alan McKinnon
2011-08-17  6:15     ` Joost Roeleveld
2011-08-17 17:37       ` Grant
2011-08-17 18:54       ` Alex Schuster
2011-08-17 20:47         ` Grant
2011-08-17 21:49           ` Alex Schuster
2011-08-17 22:03             ` Alan McKinnon
2011-08-18  0:35               ` Peter Humphrey
2011-08-18  6:30             ` Joost Roeleveld
2011-08-19  1:51   ` Grant
2011-08-19  6:13     ` Joost Roeleveld
2011-08-19 17:35       ` Grant
2011-08-21 19:10         ` Joost Roeleveld [this message]
2011-08-16 13:39 ` Bill Longman
2011-08-16 14:04   ` Alan McKinnon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1501728.2ZHPtJWtlY@eve \
    --to=joost@antarean.org \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox