Solved

Create a backup from a remote computer to a local computer using tar

Posted on 2004-04-12
1
221 Views
Last Modified: 2013-12-15
I have a remote computer (named RemoteLinux) that I want to backup onto my local computer  (named LocalLinux), preferably using tar and ssh.  The remote computer is running RedHat 7.3.  The local machine runs RedHat 9.

I ssh through a vpn tunnel.  The RemoteLinux address is 192.168.200.12.  The LocalLinux address is 192.168.70.5.  I want to backup the /home/shared folder.

Thank you,
Earl
0
Comment
Question by:earlearle
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 40

Accepted Solution

by:
jlevie earned 500 total points
ID: 10806941
What you'll want to do is to onpen an ssh session to the remote and then execute:

cd /home
tar czf - shared-dir | ssh LocalLinux dd of=shared-dir.tar.gz

This does require that you are able to open an ssh session from RemoteLinux to LocalLinux. If that's not possible and you have sufficient free space on the remote you could open an sshe session to RemoteLinux and do:

cd /home
tar cvzf shared-dir.tar.gz shared-dir
exit

Then from LocalLinux do:

scp RemoteLinux:/home/shared-dir.tar.gz .
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question