Saturday, January 2, 2016

Using Tar command to backup Live Linux Systems

1. Install Target linux machine with minimum software selection
2. Boot up target machine
3. Login as root
4. Set IP address then restart network service
5. Make sure to turn off "iptables" , "ip6tables", "selinux".
6. Login to source machine
7. touch /tmp/nocopy
boot
proc
sys
mnt
media
dev/shm
8. run following command on source machine to start copy system folders / files structure to target machine.

#cd /;tar zcvpf - -X /tmp/nocopy *|ssh  target machine IP "cd /;tar zxvpf - --numeric-owner"

No comments: