User Tools

Site Tools


linux:clone-linux-drive

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:clone-linux-drive [2025/08/10 23:50] – [Live remote cloning] Wulf Rajeklinux:clone-linux-drive [2025/09/03 01:50] (current) Wulf Rajek
Line 1: Line 1:
-====== Clone Linux Drive ======+====== Clone Linux Drive/System ======
  
  
Line 128: Line 128:
 <code> <code>
 sudo apt-get install openssh-server sudo apt-get install openssh-server
-sudo sed -i 's/#PermitRootLogin/PermitRootLogin/' /etc/sshd_config+sudo sed -i 's/#PermitRootLogin/PermitRootLogin/' /etc/ssh/sshd_config
 sudo service ssh restart sudo service ssh restart
 </code> </code>
Line 135: Line 135:
 <code> <code>
 sudo su - sudo su -
 +apt-get install sshfs rsync
 mkdir /mnt/newsystem mkdir /mnt/newsystem
 mount -t fuse.sshfs root@IP:/ /mnt/newsystem mount -t fuse.sshfs root@IP:/ /mnt/newsystem
 cp /mnt/newsystem/etc/fstab /root/newfstab cp /mnt/newsystem/etc/fstab /root/newfstab
 rsync -ahPHAXx --delete --exclude={/dev/*,/proc/*,/sys/*,/tmp/*,/run/*,/mnt/*,/media/*,/lost+found} / /mnt/newsystem rsync -ahPHAXx --delete --exclude={/dev/*,/proc/*,/sys/*,/tmp/*,/run/*,/mnt/*,/media/*,/lost+found} / /mnt/newsystem
 +
 +#or for overall bandwidth stats and brief output:
 +rsync -ahPHAXx --info=progress2 --info=name0 --delete --exclude={/dev/*,/proc/*,/sys/*,/tmp/*,/run/*,/mnt/*,/media/*,/lost+found} / /mnt/newsystem
 +
 </code> </code>
  
linux/clone-linux-drive.1754866225.txt.gz · Last modified: by Wulf Rajek