#!/bin/bash # to copy the entire lfs compiled filesystem to an old system by ssh # generate a key as root on the compilation host # scp the public key as authorized_keys on target root account # enable pubkey root in sshd target # # primary use case : # compile lfs in a vm on a recent computer # copy it on an old computer with : # - limited ressource (netbook like eeepc, very old computer like pentium3) # - limited write capacity (like sdcard as hard disk) # rsync -avzp --exclude=sources/linux-7.0.10/ --exclude=tmp/* --delete-during /mnt/lfsdev/* 192.168.0.239:/mnt/lfs/