Re: Meilleur solution pour une sauvegarde ponctuelle ?
Publié : 13 juin 2020, 15:10
J'ai relancé avec -f, je posterai le log
Reprenez le contrôle de votre domotique
https://easydomoticz.com/forum/
Code : Tout sélectionner
pi@raspberrypi:~ $ sudo rpi-clone -f sdb
Booted disk: sda 128.0GB Destination disk: sdb 120.0GB
---------------------------------------------------------------------------
Part Size FS Label Part Size FS Label
1 /boot 43.5MB fat32 -- 1 43.5MB fat32 --
2 root 128.0GB ext4 -- 2 120.0GB ext4 --
---------------------------------------------------------------------------
== Initialize: IMAGE sda partition table to sdb - forced by option ==
1 /boot (23.6MB used) : IMAGE to sdb1 FSCK
2 root (9.8GB used) : RESIZE(120.0GB) MKFS SYNC to sdb2
---------------------------------------------------------------------------
Run setup script : no
Verbose mode : no
-----------------------:
** WARNING ** : All destination disk sdb data will be overwritten!
: The partition structure will be imaged from sda.
-----------------------:
Initialize and clone to the destination disk sdb? (yes/no): y
Optional destination ext type file system label (16 chars max):
Initializing
Imaging past the start of /boot partition 2.
=> dd if=/dev/sda of=/dev/sdb bs=1M count=50 ...
Resizing last partition to end of disk ...
Resize success.
Changing destination Disk ID ...
Delaying so partprobe can update /dev entries ...
=> fsck -p /dev/sdb1 ...
=> mkfs -t ext4 /dev/sdb2 ...
Syncing file systems (can take a long time)
Syncing mounted partitions:
Mounting /dev/sdb2 on /mnt/clone
=> rsync // /mnt/clone with-root-excludes ...
Mounting /dev/sdb1 on /mnt/clone/boot
=> rsync /boot/ /mnt/clone/boot ...
Editing /mnt/clone/boot/cmdline.txt PARTUUID to use e54b7288
Editing /mnt/clone/etc/fstab PARTUUID to use e54b7288
===============================
Done with clone to /dev/sdb
Start - 15:04:35 End - 15:17:56 Elapsed Time - 13:21
Cloned partitions are mounted on /mnt/clone for inspection or customizing.
Hit Enter when ready to unmount the /dev/sdb partitions ...
unmounting /mnt/clone/boot
unmounting /mnt/clone
l'autre solution est de faire une sauvegarde système et pas un clone. Et de restaurer le système en cas de besoin ; c'est à dire rarement, donc ce n'est pas grave si cela prend un peu de tempsMais comment etre sur que maintenant que je l'ai redémarré, il a bien booté sur le ssd de base et pas le clone ?