Bonjour à tous,
La réinstallation de mon serveur local est fait et tout semble fonctionner correctement.
J'ai fait une installation avec le /home séparé.
Pour éviter de déranger vv222 à la prochaine bétise :P, je veux sauvegarder mon système.
J'ai du mal à comprendre les différences entre les méthodes. J'ai besoin de vos éclaircissement.
J'ai fait 2 méthodes:
sudo rsync -aAXv --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/home/*","/lost+found"} / /home/moi/sauvegardeserveur
Je retrouve donc tous les dossiers.
ls -l /home/didier/sauvegardeserveur
total 60
lrwxrwxrwx 1 root root 7 6 avril 08:34 bin -> usr/bin
drwxr-xr-x 3 root root 4096 6 avril 08:59 boot
drwxr-xr-x 2 root root 4096 6 avril 11:35 dev
drwxr-xr-x 74 root root 4096 6 avril 11:35 etc
drwxr-xr-x 2 root root 4096 6 avril 08:58 home
lrwxrwxrwx 1 root root 30 6 avril 08:38 initrd.img -> boot/initrd.img-6.1.0-18-amd64
lrwxrwxrwx 1 root root 30 6 avril 08:38 initrd.img.old -> boot/initrd.img-6.1.0-18-amd64
lrwxrwxrwx 1 root root 7 6 avril 08:34 lib -> usr/lib
lrwxrwxrwx 1 root root 9 6 avril 08:34 lib64 -> usr/lib64
drwxr-xr-x 2 root root 4096 6 avril 08:37 media
drwxr-xr-x 2 root root 4096 6 avril 08:34 mnt
drwxr-xr-x 2 root root 4096 6 avril 08:34 opt
dr-xr-xr-x 2 root root 4096 6 avril 11:35 proc
drwx------ 4 root root 4096 6 avril 09:38 root
drwxr-xr-x 2 root root 4096 6 avril 12:29 run
lrwxrwxrwx 1 root root 8 6 avril 08:34 sbin -> usr/sbin
drwxr-xr-x 2 root root 4096 6 avril 08:34 srv
dr-xr-xr-x 2 root root 4096 6 avril 11:35 sys
drwxrwxrwt 2 root root 4096 6 avril 11:35 tmp
drwxr-xr-x 12 root root 4096 6 avril 08:34 usr
drwxr-xr-x 11 root root 4096 6 avril 08:34 var
lrwxrwxrwx 1 root root 27 6 avril 08:38 vmlinuz -> boot/vmlinuz-6.1.0-18-amd64
lrwxrwxrwx 1 root root 27 6 avril 08:38 vmlinuz.old -> boot/vmlinuz-6.1.0-18-amd64
~# tar cvpjf sauvegardeserveur.tar.bz2 --exclude=/proc --exclude=/dev --exclude=/run --exclude=/media --exclude=/home --exclude=/tmp --exclude=/lost+found --exclude=backup.tar.bz2 --exclude=/mnt --exclude=/sys /
Je retrouve bien l'archive
total 661444
drwxrwxrwx 527 didier didier 20480 1 avril 21:49 musique
drwxr-xr-x 17 root root 4096 6 avril 08:38 sauvegardeserveur
-rw-r--r-- 1 root root 677287236 6 avril 15:36 sauvegardeserveur.tar.bz2
Questionnement:
1/ est-ce que les 2 méthodes sont correctes?
2/ puis-je déplacer le dossier sauvegardeserveur sur un disque usb avec un simple copier/coller sans risque de perte les permissions ou autres?
3/ avantages et inconvénients.
Merci par avance pour votre aide
Edit: je ne suis pas trompé de section "autres"....si un modo veut déplacer...
Dernière modification par wardidi (06-04-2024 15:15:42)