Backup laptop data.. over ssh and tar..

cd /home ; tar cvf – user | ssh remotemachine ‘cd /destination ; tar xf -‘

it will transfer all file in /home/user to remotemachine:/destination

later on.. you might need to transfer back..

using..

ssh remotemachine ‘cd /destination ; tar cvf – user’ | cd /home/ ; tar xf –

Get Free Email Updates!

Signup now and receive an email once I publish new content.

I will never give away, trade or sell your email address. You can unsubscribe at any time.

Like

Related Post

2 Responses

  1. HawkEYE says:

    port can be set at the hostname with a colon :

    such as this..

    to get into SSH server on hostname.com.my at port 2222

    set it with this at the host box.

    hostname.com.my:2222

    Reply
  2. HawkEYE says:

    port can be set at the hostname with a colon :

    such as this..

    to get into SSH server on hostname.com.my at port 2222

    set it with this at the host box.

    hostname.com.my:2222

    Reply

Anything to add?

X