[Tuto] Backup carte SD complète sur freebox V6
-
landaisbenj
- Messages : 695
- Inscription : 12 mars 2017, 19:24
Re: Backup carte SD complète sur freebox V6
Je viens d'avoir l'occasion de tester le backup. Mon rpbi a complètement déconné quelque jour. Redémarrage incessant et impossible de relancer le serveur web de domoticz... J’étais dans une galère.... Pret a remonter le serveur en entier (car j'avais dans l'intention de le faire) Mais pour les périodes de noël, avoir le temps c'est compliqué.
J'ai eu l'envie de remonter une de mes sauvegardes en passant par win32. Et tout a fonctionné a merveille. Je suis hyper content.
J'ai eu l'envie de remonter une de mes sauvegardes en passant par win32. Et tout a fonctionné a merveille. Je suis hyper content.
Rpbi3b: Domoticz + Homebridge + Monit + Freebox scripts + Shellinabox; Rpbi2: Jarvis
Domoticz: Derniere stable; RFLINK: Dernière stable; Xiaomi Gateway
Domoticz: Derniere stable; RFLINK: Dernière stable; Xiaomi Gateway
Re: Backup carte SD complète sur freebox V6
Salut à tous,
D’abor MERCI Jose pour ce super tuto.
Je me permets de solliciter votre aide même si le topic date un peu, car je bute sur un détail sans doute idiot :
Je n’ai pas la permission d’exécuter la commande dd, même avec sudo, par contre si je passe en su j’y arrive.
Si quelqu’un pouvais m’eclairer, j’y comprends pas grand chose sous nunux
D’abor MERCI Jose pour ce super tuto.
Je me permets de solliciter votre aide même si le topic date un peu, car je bute sur un détail sans doute idiot :
Je n’ai pas la permission d’exécuter la commande dd, même avec sudo, par contre si je passe en su j’y arrive.
Si quelqu’un pouvais m’eclairer, j’y comprends pas grand chose sous nunux
-
landaisbenj
- Messages : 695
- Inscription : 12 mars 2017, 19:24
Re: Backup carte SD complète sur freebox V6
C'est la commande ou le script?
Rpbi3b: Domoticz + Homebridge + Monit + Freebox scripts + Shellinabox; Rpbi2: Jarvis
Domoticz: Derniere stable; RFLINK: Dernière stable; Xiaomi Gateway
Domoticz: Derniere stable; RFLINK: Dernière stable; Xiaomi Gateway
Re: Backup carte SD complète sur freebox V6
En fait le script s'exécute sans message d'erreur mais le backup est un fichier de 45b... Je reçois bien les 2 sms mais quasi instantanément.
Du coup j'ai décomposé les commandes les unes après les autres : le montage ok, le sms ok, le dd... pas ok : permission non accordée sauf en superutilisateur
edit : en fait même en su le fichier créé ne fait que 45b. Je ne parviens pas à enregistrer le backup sur la Freebox. J'arrive à y créer fichiers et dossiers pourtant... Et aucun problème pour faire le backup sur clé usb...
Du coup j'ai décomposé les commandes les unes après les autres : le montage ok, le sms ok, le dd... pas ok : permission non accordée sauf en superutilisateur
edit : en fait même en su le fichier créé ne fait que 45b. Je ne parviens pas à enregistrer le backup sur la Freebox. J'arrive à y créer fichiers et dossiers pourtant... Et aucun problème pour faire le backup sur clé usb...
-
landaisbenj
- Messages : 695
- Inscription : 12 mars 2017, 19:24
Re: Backup carte SD complète sur freebox V6
Je pense pas trop t'aider. Fait voir la commande dd que tu as essayé de faire toi meme sur l'os ?
Rpbi3b: Domoticz + Homebridge + Monit + Freebox scripts + Shellinabox; Rpbi2: Jarvis
Domoticz: Derniere stable; RFLINK: Dernière stable; Xiaomi Gateway
Domoticz: Derniere stable; RFLINK: Dernière stable; Xiaomi Gateway
Re: Backup carte SD complète sur freebox V6
Je m'en suis sorti en fouinant du côté du fstab et je laisse la Freebox montée avec mount -a.
Merci de ton intérêt Benj
Merci de ton intérêt Benj
-
landaisbenj
- Messages : 695
- Inscription : 12 mars 2017, 19:24
Re: Backup carte SD complète sur freebox V6
Rpbi3b: Domoticz + Homebridge + Monit + Freebox scripts + Shellinabox; Rpbi2: Jarvis
Domoticz: Derniere stable; RFLINK: Dernière stable; Xiaomi Gateway
Domoticz: Derniere stable; RFLINK: Dernière stable; Xiaomi Gateway
Re: Backup carte SD complète sur freebox V6
bonjour
ma sauvegarde ne fonctionne plus depuis le passage a stretch ; le disque a changer de nom :
pi@raspberrypi:~/domoticz/scripts/shell $ sudo fdisk -l
Disk /dev/ram0: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram1: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram2: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram3: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram4: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram5: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram6: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram7: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram8: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram9: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram10: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram11: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram12: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram13: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram14: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram15: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/mmcblk0: 59,5 GiB, 63864569856 bytes, 124735488 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xee4656c8
Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 8192 93802 85611 41,8M c W95 FAT32 (LBA)
/dev/mmcblk0p2 98304 124735487 124637184 59,4G 83 Linux
on ne retrouve plus de mmcblkàOp0
j ai essayer avec mmcblk0p2 mais ca ne fonctionne pas
Auriez vous une idée?
ma sauvegarde ne fonctionne plus depuis le passage a stretch ; le disque a changer de nom :
pi@raspberrypi:~/domoticz/scripts/shell $ sudo fdisk -l
Disk /dev/ram0: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram1: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram2: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram3: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram4: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram5: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram6: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram7: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram8: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram9: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram10: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram11: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram12: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram13: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram14: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram15: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/mmcblk0: 59,5 GiB, 63864569856 bytes, 124735488 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xee4656c8
Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 8192 93802 85611 41,8M c W95 FAT32 (LBA)
/dev/mmcblk0p2 98304 124735487 124637184 59,4G 83 Linux
on ne retrouve plus de mmcblkàOp0
j ai essayer avec mmcblk0p2 mais ca ne fonctionne pas
Auriez vous une idée?
Re: Backup carte SD complète sur freebox V6
bonjour,
marche parfaitement bien !!!!
Merci
marche parfaitement bien !!!!
Merci
-
landaisbenj
- Messages : 695
- Inscription : 12 mars 2017, 19:24
Re: Backup carte SD complète sur freebox V6
J'ai cru remarqué qu'il n'utilisait plus des noms de partition mais des uid... Du coup il faudra surement adapter.
Rpbi3b: Domoticz + Homebridge + Monit + Freebox scripts + Shellinabox; Rpbi2: Jarvis
Domoticz: Derniere stable; RFLINK: Dernière stable; Xiaomi Gateway
Domoticz: Derniere stable; RFLINK: Dernière stable; Xiaomi Gateway