TO DO:
* tidy pendejo:/home
* reorganize box
* tester smart en mettant chacun des disque dans pendejo
* steam → ironwolf
* spiti linux → ironwolf + HD2.5 1TB
* spiti windows ?
* win10 ironwolf ext4 ?
===== machines & partitions =====
**pendejo**
* linux 500GB.nvme → ironwolf (2024/06/16 fedora & debian; last MBR backup)
* home 2TB.ssd samsung 860 QVO → ironwolf (2024/06/16)
* linux 500GB.nvme → cru4sys (2023/09/03 fedora boot ready)
* home 2TB.ssd samsung 860 QVO → cru4data/home.pendejo.efs (2023/09/03)
* win10 1TB.ssd.qvo870 → ironwolf (2022/12/17 rsync backup)
* barracuda 3TB
**spiti**
* linux 1TB.ssd.qvo860 → HD2.5 1TB.HGST (2024/06/16)
* win10 256GB.ssd → ???HD2.5 750GB?? (**to do**)
**box**
* up to 500GB
* → ssdext500
* pendejo box.local 2021/10/03
* → ironwolf
**bobibob** + bobidisco ssd samsung 870 QVO 1TB exFAT
* linux: partitions boot, system and data → backed up on HD 2.5 320GB **id:bob 8404s** 2022/11/27
* ssdext bobidisco → ironwolf 2022/12/17
-----
===== drives =====
==== HD 3.5" ====
* **8TB ironwolf**
* part.1 → 2TB NTFS win10 backup with AOEMI (last 2021/10/02) + steam backups
* part.2 → 5.5TB ext4
* 3TB barracuda (in pendejo for win D:)
* 3TB WD (pendejo home until 2019)
* 1TB WD green WD10EAS (gamborimbo laptop backup on part.gambak) → SMART OK 2021/10/03
* 1TB.SEAGA_1 HEALTHY
* 1TB.SEAGA_2 HEALTHY (Marion ext HD eGo 1TB → 510GB used)
* 1TB.SEAGA_3 HS FAIL ?
* 1TB.SEAGA_4 PREFAIL
==== HD 2.5" ====
* **500GB ssdext500 box** (+inagua fichant11)
* **320GB HD linux Marion** → SMART OK 2021/10/03
* 1TB.HGST 7mm (**spiti linux** to do) → SMART OK but problems with rsync 2021/10/03
* 160GB WD win7 Marion → SMART OK 2021/10/03
* 750GB WD scorpio black → SMART OK 2021/10/03
* 750GB WD scorpio blue → SMART OK 2021/10/03
* 1TB.hm100ui 9mm → SMART OK 2021/10/03
* 160GB piexthd → SMART OK 2021/10/03
* 160GB unnamed → SMART OK 2021/10/03
==== nvme ====
* 500GB kingston (in pendejo fedora)
* 2TB crucial p3plus (in pendejo for win sys 1TB + A: 1TB)
* 4TB crucial p3plus cru4data 3.7TB (pendejo sys+home backup, box backup)
-----
===== rsync commands =====
==== pendejo fedora system nvme 500GB → crucial 4TB cru4sys ====
# system (to check if it boots up)
# mounted on /run/media/barriot/cru4sys
rsync --dry-run --delete --itemize-changes --exclude /etc/fstab --exclude /home --exclude /mnt --exclude /dev --exclude /proc --exclude /run --exclude /sys --archive --hard-links --acls --xattrs --stats -h / /run/media/barriot/cru4sys/
==== pendejo ssd QVO 860 2TB home → crucial 4TB ====
cd /run/media/barriot/cru4data/
encfs --public $PWD/home.pendejo.efs $PWD/home.pendejo
time rsync --dry-run --delete --exclude .cache --exclude barriot/box.local --itemize-changes -a --stats -h /home/ /run/media/barriot/cru4data/home.pendejo/
fusermount -u /run/media/barriot/cru4data/home.pendejo
==== pendejo fedora system nvme 500GB → ironwolf 8TB ====
# GTP partition table (2023/12/13)
cd /run/media/barriot/ironwolf_ext4/pendejo
sgdisk -b nvme500.gpt.partition.table.sgdisk /dev/nvme1n1
# boot
time rsync --dry-run --delete --itemize-changes -a --stats -h --one-file-system /boot/ /run/media/barriot/ironwolf_ext4/pendejo/boot/ | tee /run/media/barriot/ironwolf_ext4/pendejo/boot.rsync.log
# efi
time rsync --dry-run --delete --itemize-changes -a --stats -h --one-file-system /boot/efi /run/media/barriot/ironwolf_ext4/pendejo/efi/ | tee /run/media/barriot/ironwolf_ext4/pendejo/efi.rsync.log
# sys/fedora
time rsync --dry-run --delete --itemize-changes -a --stats -h --hard-links --acls --xattrs --one-file-system / /run/media/barriot/ironwolf_ext4/pendejo/rootfs/ | tee /run/media/barriot/ironwolf_ext4/pendejo/rootfs.rsync.log
# sys/debian
time rsync --dry-run --delete --itemize-changes -a --stats -h --hard-links --acls --xattrs --one-file-system /run/media/barriot/debian/ /run/media/barriot/ironwolf_ext4/pendejo/debian/ | tee /run/media/barriot/ironwolf_ext4/pendejo/debian.rsync.log
==== pendejo ssd QVO 860 2TB → ironwolf 8TB ====
**/home**
time rsync --dry-run --delete --exclude .cache --itemize-changes -a --stats -h /home/ /run/media/barriot/ironwolf_ext4/pendejo/home/ | tee /run/media/barriot/ironwolf_ext4/pendejo/home.rsync.log
==== pendejo Win10 crucial p3plus 2TB → ironwolf 8TB winbackup partition ====
crucial p2plus 2TB is /dev/nvme0n1
Backup partition table (2023/03/06)
cd /run/media/barriot/winbackup
sgdisk --backup=sgdisk.backup.GPT.partition.table /dev/nvme0n1
Backup first (//Réservé au Système//), EFI partitions and C:
dd if=/dev/nvme0n1p1 of=Reserve.au.Systeme.nvme0n1p1.dd.img
dd if=/dev/nvme0n1p3 of=EFI.nvme0n1p3.dd.img
dd if=/dev/nvme0n1p2 of=System.win10.nvme0n1p2.dd.img bs=1024k status=progress
Backup crucial_2TB_data (A:) data partition
robocopy A:\ F:\crucial_2TB_data_robocopy /E /COPYALL /XD $RECYCLE.BIN "System Volume Information"
==== spiti to cru4data ====
time rsync --dry-run --delete --itemize-changes -a --stats -h --hard-links --acls --xattrs --one-file-system /boot/efi/ /run/media/barriot/cru4data/spiti/efi/
time rsync --dry-run --delete --itemize-changes -a --stats -h --hard-links --acls --xattrs --one-file-system /boot/ /run/media/barriot/cru4data/spiti/boot/
time rsync --dry-run --delete --itemize-changes -a --stats -h --hard-links --acls --xattrs --one-file-system / /run/media/barriot/cru4data/spiti/rootfs/
time rsync --dry-run --delete --itemize-changes -a --stats -h --hard-links --acls --xattrs --one-file-system --exclude=.cache/ /home/marion/ /run/media/barriot/cru4data/spiti/marion/
==== OBSOLETE (up to 2023/02) pendejo ssd QVO 870 1TB win10 → ironwolf 8TB winbackup partition ====
Un autre répertoire **steam** existe sur la partition ; sûrement un backup via steam ou une copie
**Réservé au système**
time rsync --dry-run --delete --exclude --progress --itemize-changes -a --stats -h --hard-links --acls --xattrs --one-file-system /run/media/barriot/Réservé\ au\ système/ /run/media/barriot/winbackup/Reserve.au.systeme/ | tee /run/media/barriot/ironwolf_ext4/pendejo/win10.Reserve.au.systeme.rsync.log
**main partition**
time rsync --dry-run --delete --exclude --progress --itemize-changes -a --stats -h --hard-links --acls --xattrs --one-file-system /run/media/barriot/System/ /run/media/barriot/winbackup/System/ | tee /run/media/barriot/ironwolf_ext4/pendejo/win10.System.rsync.log
==== spiti to 1TB.HGST ====
time rsync --dry-run --delete --itemize-changes -a --stats -h --hard-links --acls --xattrs --one-file-system /boot/efi/ /run/media/barriot/SPIEFI/
time rsync --dry-run --delete --itemize-changes -a --stats -h --hard-links --acls --xattrs --one-file-system /boot/ /run/media/barriot/spiboot/
time rsync --dry-run --delete --itemize-changes -a --stats -h --hard-links --acls --xattrs --one-file-system / /run/media/barriot/spisys/
time rsync --dry-run --delete --itemize-changes -a --stats -h --hard-links --acls --xattrs --one-file-system /home/ /run/media/barriot/spihome/
==== b3 to cru4data for fedora upgrade ====
time rsync --dry-run --delete --itemize-changes -a --stats -h --hard-links --acls --xattrs --one-file-system /boot/efi/ /run/media/barriot/cru4data/b3/efi
time rsync --dry-run --delete --itemize-changes -a --stats -h --hard-links --acls --xattrs --one-file-system /boot/ /run/media/barriot/cru4data/b3/boot
time rsync --dry-run --delete --itemize-changes -a --stats -h --hard-links --acls --xattrs --one-file-system / /run/media/barriot/cru4data/b3/rootfs
===== spiti partition table backup to spiti:/root 2021/10/03 =====
### Sun Oct 03 16:18 root spiti.ux410ua ~
$ sfdisk --dump /dev/sda
label: dos
label-id: 0x6ac575ac
device: /dev/sda
unit: sectors
sector-size: 512
/dev/sda1 : start= 2048, size= 389120, type=6, bootable
/dev/sda2 : start= 391168, size= 2097152, type=83
/dev/sda3 : start= 2488320, size= 1688887296, type=83
/dev/sda4 : start= 1691375616, size= 262148096, type=5
/dev/sda5 : start= 1691379712, size= 209715200, type=83
/dev/sda6 : start= 1901096960, size= 52426752, type=82
### Sun Oct 03 16:19 root spiti.ux410ua ~
$ sfdisk --dump /dev/sda > /root/spiti.samsung.ssd.860.QVO.1TB.sfdisk.dump.out
### Sun Oct 03 16:20 root spiti.ux410ua ~
$ dd if=/dev/sda of=/root/spiti.samsung.ssd.860.QVO.1TB.dd.mbr bs=512 count=1
1+0 records in
1+0 records out
512 bytes copied, 8.5901e-05 s, 6.0 MB/s
==== box (2019-10-07 @inagua) ====
> cheat rsync.box
rsync --dry-run --delete --archive --itemize-changes --stats -h --filter='dir-merge /NOBACKUP.fichant11' ~/box/ /run/media/barriot/box/box/
==== bobibob ====
linux → HD2.5 320GB id: bob 8404s
time rsync --dry-run --delete --itemize-changes -a --stats -h --hard-links --acls --xattrs --one-file-system /boot/ /run/media/marion/boot/
time rsync --dry-run --delete --itemize-changes -a --stats -h --hard-links --acls --xattrs --one-file-system / /run/media/marion/system/
time rsync --dry-run --delete --itemize-changes -a --stats -h --hard-links --acls --xattrs --one-file-system /home/ /run/media/marion/data/
==== bobidisco = ssd extern samsung 870 QVO 1TB exFAT ====
~500GB used as of 2021/10/03
ssdext → ironwolf
time rsync --dry-run --delete --itemize-changes -a --stats -h --hard-links --acls --xattrs --one-file-system /run/media/barriot/bobidisco/ /run/media/barriot/ironwolf_ext4/bobidisco/
-----
===== archives =====
**gamborimbo**
* linux 160GB.hd → ?
* live key 64GB → ?
**pi3** & **pi4** stuff → ?
==== Marion ext HD eGo → ironwolf ====
time rsync --itemize-changes -a --stats -h --hard-links --acls --xattrs --one-file-system /run/media/barriot/seaga_2/eGo.Marion/ /run/media/barriot/ironwolf_ext4/eGo.Marion/