[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] Cobalt RaQ3 Backup



At 08:49 AM 3/1/02 +0000, you wrote:
Hi,

Thanks for your reply Glenn. Do you reccomend SSH because telnet is
insecure?

Yes, exactly.

I would be extremely grateful if you could just explain a couple of points:

> 1) Installing the SSH 3.0x package on your RaQ

Where can I find such a download?

http://Pkgmaster.com

> 2) login as root,  edit /etc/services

In what way do I edit it - do I add or remove something?

Remark the line with the '#' symbol. You should, of course, test your SSH install prior to doing this, otherwise, you get locked out!

> login using SSH, comment out the line telnet tcp  23

Is this okay? Is there any way of restarting it afterwards?

Restart inetd after installing SSH, testing login with an SSH client ('Putty' is a free Windows client and comes well recommended). You restart inetd by logging in as root, or logging in as admin and 'su' to root. Then exec /etc/rc.d/init.d/inetd restart.


I'm sorry about all the questions, but I really need to sort this out!!

Don't be sorry about the questions! If we can save you getting hacked, we're all better off for it too!


Cheers,

Si

Hello Si,

The following is an excerpt of my backup script. Be aware, that it is a continuously-wrapped one-line call. I have cron execute the script. The -e switch utilizes ssh to perform the login which is automated. I cleared the destination IP with x's. the source of the backup is /shares/md0/shares. I redirected output with '> /root/backcron.log' to create a log.

rsync -avz -e ssh /shares/md0/shares/* root@xxxxxxxxxxxxx:/home/backup/1bigdisk > /root/backcron.log

The rsync backup takes a considerable amount of time to set up and perfect. You will learn a lot in doing so! You can take a short-cut and utilize scp. Scp is installed with the SSH package and is utilized on the command line similarly to rsync. Scp uses SSH login as a default. Scp works more like ftp, however. Every backup you make, is always the total replacement of the source. With rsync, you only replace the changed files from the source. This will save considerable bandwidth and considerable time during your backups.

Good Luck,
Glenn