Securing-Optimizing-RH-Linux-1_2_462
Comments and suggestions concerning this book should be mailed to gmourani@videotron.ca
© Copyright 1999-2000 Gerhard Mourani and Open Network Architecture ®
462
·
To use scp to copy a backup tape or file to a remote secure system, use the command:
[admin@deep /]# scp <localdir/to/filelocation> <user@host:/dir/for/file>
Where <localdir/to/filelocation> is the directory where your backup file reside on your local server,
<user@host:/dir/for/file> represent in order, the username (user) of the person on the remote site
that will hold the backup file, the hostname (host) of the remote host where you want to send the
backup file, and the remote directory of this host where you want to place the transferred backup
file.
A real example will look like this:
[admin@deep /]# scp -Cp /backups/deep-01Feb.tar admin@backupserver:/archive/deep/deep-
01Feb.tar
admin@backupserver's password:
deep-01Feb.tgz | 10479 KB | 154.1 kB/s | ETA: 00:00:00 | 100%
NOTE: The C option enable compression for fast data transfer over the encrypted session, the
p option indicates that the modification and access times as well as modes of the source file
should be preserved on the copy. This is usually desirable. It is important to note that the
dir/for/file directory on the remote host (/archive/deep in our example) must be owned by the
username your specify in your scp command (admin is this username in our example) or you
may receive error message like: scp: /archive/deep/deep-01Feb.tar: Permission denied.
·
To use scp to copy a remote tape or file to the local system, use the command:
[admin@deep /]# scp <user@host:/dir/for/file> <localdir/to/filelocation>
Where <user@host:/dir/for/file> represent in order, the username (user) of the person on the
remote site that hold the backup file, the hostname (host) of the remote host where you want to
get the backup file, and the remote directory of this host where the backup file is keeping,
<localdir/to/filelocation> is the local directory on your system where your want to place the backup
file you get from the remote host.
A real example will look like this:
[admin@deep /]# scp -Cp admin@backupserver:/archive/deep/deep-01Feb.tar /backups
admin@backupserver's password:
deep-01Feb.tgz | 10479 KB | 154.1 kB/s | ETA: 00:00:00 | 100%
NOTE: It is important to note that the localdir/to/filelocation directory on the local host (/backups
in our example) must be owned by the username your specify in your scp command (admin is
this username in our example) or you may receive error message like: /backups/deep-01Feb.tar:
Permission denied.
Alternatives to tar and dump backups
AMANDA
AMANDA Homepage: http://www.cs.umd.edu/projects/amanda/
BRU
BRU Homepage: http://www.bru.com/