Back up data in Rescue mode

Les Mikesell lesmikesell at gmail.com
Mon Mar 20 13:42:01 UTC 2006


On Mon, 2006-03-20 at 00:21, M.K wrote:
> I could find the root/local directory. let say I created a tar file
> and called it
> my-tar.tgz  I want to pass this tar file with ssh to my another server
> for exxample 
>  ' www.mysite.com'
> 
> Where I have to put my tar file' my-tar.tgz' to the next comand
> 
> rsync -essh -av . www.mysite.com:/path/to/directory 

The '.' (current directory) in this command is the source that
rsync will send and the -a option says (among other things) to recurse
through subdirectories.  The /path/to/directory
part of the command will create one (and only one) new subdirectory
at the end of the path if it doesn't already exist.  If you use
that, you wouldn't have to create the tar file first unless you
want compression or the convenience of having everything in one
file while you rebuild your machine.

If you do make a tar file first, you could use scp instead of
rsync like:
  cd  /dir/with/tarfile
  scp my-tar.tgz  www.mysite.com:/path/to/directory
or with rsync like:
  rsync -essh my-tar.tgz www.mysite.com:/path/to/directory

If you have trouble with either of these, test your ssh
connection with something like:
  ssh www.mysite.com id
If you don't have root access to the other machine you can
specify a user name like:
  ssh user at www.mysite.com id
and connect with the specified user's password.  The same
user at host style works in the scp and rsync commands.

-- 
  Les Mikesell
   lesmikesell at gmail.com





More information about the fedora-list mailing list