Re: Backups; the dumbest question in the world

From: Adam Taube (nospam_at_thenewsgroups.com)
Date: 09/25/04


Date: Fri, 24 Sep 2004 22:55:07 -0600


> nsswitch, I've been forced into having to remember to 'manually' copy my
> backups weekly to one of the Sun boxes that get tape-backedup.
>
> Does anyone have any kind of solution to this?

Use ssh tunneled rsync to back up from one machine to the other. You can
generate keys using openssl so that your backup script can either copy the
tar.gz directly to the other machine automatically without having to enter
password - on the backup machine create a user called 'rsync' or whatever
you decide, create the key on the source machine and put it in the
authorized_keys file in ~rsync/.ssh/ - then have cron call a script that
will do this:

/usr/local/bin/rsync -e "ssh" -acqz /backupdir/backupfile.tar.gz
rsync@host:/home/rsync/backupdir

Great thing is you can have it synchronize sets as often as you like. Even
have multiple versions in folders for each day of the week, however you want
to do it :-)

This assumes that rsync, openssl, are installed and sshd is running on your
machines. You don't need to run the rsync server at all for this, sshd will
call it.

For more info, man rsync

:-)

Adam



Relevant Pages

  • Re: [opensuse] Suggestions for backup software?
    ... be something capable of bridging DVDs for a total backup, and probably CDs for incremental backup. ... At home I have an old file server running 10.0 and all you need is rsync that is already installed on your system. ... The way I set up rsync is to set up a primary script that calls rsync which then reads a second file to get a list of directories to back up. ...
    (SuSE)
  • Re: Sorta OT - Backup solutions Mac to FreeBSD
    ... I am backing up 5 servers on one centralized machines using "rsnapshot" It is doing a perfect job, ... As It uses a symlink strategy, It does not use very much space on the backup device. ... and remote machines over ssh. ... If you are syncing OSX 10.4 use the Apple provided rsync and not any other. ...
    (freebsd-questions)
  • Re: Looking for advice on rsync
    ... >etc.) you can have inconsistent versions on the backup media. ... Somebody told them that rsync could prevent ... >you run, but that's application level, and this app has no such ... If they use snapshots, that period can be ...
    (comp.os.linux.misc)
  • Re: Mounting external USB disk
    ... If you intend to backup to a device it's prudent to check the device is mounted ... claiming that it can't correctly mount /dev/ ... It's not uncommon for the BIOS to list USB devices before SATA and IDE devices, ... external USB drive it will run an automatic rsync of certain directory trees. ...
    (uk.comp.os.linux)
  • Re: printer problems
    ... >> The Laserjet seems to be connected and communicating with the Fedora ... > How about just using rsync for backup? ... >> How about just using rsync for backup? ... > comment = Rsync Backup Server ...
    (Fedora)