From owner-freebsd-questions@FreeBSD.ORG Tue Jul 15 05:24:39 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5EB8E37B401 for ; Tue, 15 Jul 2003 05:24:39 -0700 (PDT) Received: from cage.simianscience.com (cage.simianscience.com [64.7.134.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3CD6243F93 for ; Tue, 15 Jul 2003 05:24:38 -0700 (PDT) (envelope-from mike@sentex.net) Received: from house.sentex.net (fcage [192.168.0.2])h6FCOWlD075864; Tue, 15 Jul 2003 08:24:32 -0400 (EDT) (envelope-from mike@sentex.net) Message-Id: <5.2.0.9.0.20030715081220.055acec8@192.168.0.12> X-Sender: mdtancsa@192.168.0.12 X-Mailer: QUALCOMM Windows Eudora Version 5.2.0.9 Date: Tue, 15 Jul 2003 08:22:36 -0400 To: DanB From: Mike Tancsa In-Reply-To: <3F13C47F.C61B03DB@chatusa.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Virus-Scanned: amavis-20020220 cc: freebsd Subject: Re: Backup over the internet. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jul 2003 12:24:39 -0000 Something piped through ssh using DSA keys. e.g. on the machine which you want backed up (client) to the machine where the backup file lives, client machine: su root # if you have not yet created your ssh keys, do so now ssh-keygen -d on the server machine, pw useradd clientmachineid -m su clientmachineid cd ~clientmachineid ssh-keygen -d cd .ssh # from the client machine, put the root's id_dsa.pub and ONLY the .pub file here under the name authorized_keys2 #on the client machine, ssh clientmachineid@server #if all goes well, you will login without a password. Now the backups. If you need to preserve file access times and want to do incremental backups, use dump. If you dont care about munging file access times, and its just simple files, tar will work. /sbin/dump -0uan -f - / | gzip -9 | /usr/bin/ssh -2 -c blowfish clientmachineid@backupserver.example.com dd of=/pathtohomedirectory/clientmachineid/dump-root-l0.gz /usr/bin/tar -cpzf - /usr/local/etc /etc/mail/ | ssh -c blowfish clientmachineid@backupserver.example.com "cat - > /pathtohomedirectory/clientmachineid/backup.`date "+%d"`.tgz" Blowfish is a bit faster than the others so I specify it. ---Mike At 09:08 AM 7/15/2003 +0000, DanB wrote: >What is the easy way to back up over the internet? What software should >be used? > >Dan > >_______________________________________________ >freebsd-questions@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" -------------------------------------------------------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike@sentex.net Providing Internet since 1994 www.sentex.net Cambridge, Ontario Canada www.sentex.net/mike