Sunday, November 24, 2013

How to take backup from a remote machine in linux



 In this post Iam describing how to take backup or copy of a folder or directory from a remote machine that is connected to the network

Step 1 : Checking for SSH enabled

Look for SSH server is started by typing command #restart ssh


Step 2: selecting source and destination directories

Step 3: Using command line tool for taking backup

Here Iam transfering the data present in the machine 192.168.44.128 with username ubuntuserver /backup directory.this is done by command
 "rsync -avz username@remote_machine:/source folder  /destination folder "
 
root@ubuntu:~# rsync -avz ubuntuserver@192.168.44.128:/backup /media/disk1/Backup_03012013
ubuntuserver@192.168.44.128's password:
receiving incremental file list
created directory /media/disk1/Backup_03012013
backup/
backup/1/
backup/1/1233
backup/1/44
backup/1/5
backup/2/
backup/2/3444
backup/2/55
backup/3/
backup/3/4
backup/4/

sent 145 bytes  received 416 bytes  53.43 bytes/sec
total size is 0  speedup is 0.00

No comments:

Post a Comment