Date: Tue, 15 Jul 2003 08:22:36 -0400 From: Mike Tancsa <mike@sentex.net> To: DanB <longterm@chatusa.com> Cc: freebsd <questions@freebsd.org> Subject: Re: Backup over the internet. Message-ID: <5.2.0.9.0.20030715081220.055acec8@192.168.0.12> In-Reply-To: <3F13C47F.C61B03DB@chatusa.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5.2.0.9.0.20030715081220.055acec8>
