Re: Emulate Ghost4Linux with standard Linux commands?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]




> On Nov 28, 2020, at 7:12 AM, Nicolas Kovacs <info@xxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxxxxxxx \
>  dd of=centos-7.9-server-image.gz
> 
> Restore this image from a live rescue session:
> 
> # ssh microlinux@xxxxxxxxxxxxxxxxxxxx \
>  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@xxxxxxxxxxxxx
> Tél. : 04 66 63 10 32
> Mob. : 06 51 80 12 12
> _______________________________________________
> CentOS mailing list
> CentOS@xxxxxxxxxx
> https://lists.centos.org/mailman/listinfo/centos

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]


  Powered by Linux