[prev in list] [next in list] [prev in thread] [next in thread] 

List:       centos
Subject:    Re: [CentOS] Emulate Ghost4Linux with standard Linux commands?
From:       Valeri Galtsev <galtsev () kicp ! uchicago ! edu>
Date:       2020-11-28 15:19:38
Message-ID: 4CDCB578-0865-42F0-8F45-41D8D96E19C4 () kicp ! uchicago ! edu
[Download RAW message or body]



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

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic