> On Nov 28, 2020, at 7:12 AM, Nicolas Kovacs <info at microlinux.fr> wrote: > > Le 28/11/2020 à 08:13, Nicolas Kovacs a écrit : >> Now here's the question. From within my live system, how could I compress >> my system into a compact image and then send it to a distant FTP server? > > I'll answer this myself, since I just experimented and found a strikingly > simple solution using dd and SSH (better than FTP). > > Backup the server over the network from a live rescue session: > > # dd if=/dev/sda status=progress | gzip --fast - | \ > ssh microlinux at backup.microlinux.fr \ > dd of=centos-7.9-server-image.gz > > Restore this image from a live rescue session: > > # ssh microlinux at backup.microlinux.fr \ > dd if=centos-7.9-server-image.gz | \ > gunzip --fast - | dd of=/dev/sda status=progress > As you mention “compress” in your question, you could also add -C flag to ssh command (to turn on compression) Valeri > Why didn't I think of this before ? > > :o) > > Niki > > -- > Microlinux - Solutions informatiques durables > 7, place de l'église - 30730 Montpezat > Site : https://www.microlinux.fr > Blog : https://blog.microlinux.fr > Mail : info at microlinux.fr > Tél. : 04 66 63 10 32 > Mob. : 06 51 80 12 12 > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centos