meta data for this page
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:fs:btrfs:send [2024/11/20 17:24] – niziak | linux:fs:btrfs:send [2024/11/21 17:32] (current) – niziak | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== send / receive ====== | ====== send / receive ====== | ||
| + | |||
| + | grub-install --target=x86_64-efi --efi-directory=/ | ||
| + | update-grub | ||
| + | |||
| + | mount --rbind /dev / | ||
| + | mount --rbind /proc / | ||
| + | mount --rbind /sys / | ||
| + | chroot / | ||
| + | |||
| + | grub-install --target=x86_64-efi --efi-directory=/ | ||
| + | Installing for x86_64-efi platform. | ||
| + | grub-install: | ||
| + | |||
| ===== migrate to new storage ===== | ===== migrate to new storage ===== | ||
| Line 102: | Line 115: | ||
| <code bash> | <code bash> | ||
| - | rsync -avxHAXPW | + | rsync -avHAXPW |
| + | </ | ||
| + | |||
| + | Try ssh to correct permission errors | ||
| + | <code bash> | ||
| + | rsync -avHAXPW --exclude=" | ||
| </ | </ | ||
| Line 110: | Line 128: | ||
| </ | </ | ||
| + | Even if rsync daemon is started from root account (on src host) it cannot read some files according to normal permissions: | ||
| + | < | ||
| + | rsync: [sender] send_files failed to open "/ | ||
| + | rsync: [sender] send_files failed to open "/ | ||
| + | rsync: [sender] send_files failed to open "/ | ||
| + | </ | ||
| + | workaround is to start rsync daemon on dst host with the same rsyncd.conf config and start rsync from src host: | ||
| - | + | <code bash> | |
| - | rsync -avxHAXPW | + | rsync -avxHAXPW --exclude=" |
| - | + | </code> | |
| - | + | ||
| - | rsync -arAXHvW | + | |
| - | $ rsync -vuar host1:/var/www host2:/var/www | + | |
| tar: | tar: | ||
| - | * ' | + | * ''-c'' create |
| - | * -p, --preserve-permissions, | + | * '' |
| - | | + | * '' |
| - | ruser) | + | * '' |
| - | + | ||
| - | + | | |
| - | -s, --preserve-order, | + | |
| - | | + | |
| - | + | ||
| - | -f, --file=ARCHIVE | + | |
| - | | + | |
| - | | + | |
| - | + | ||
| - | + | ||
| Sender: | Sender: | ||
| <code bash> | <code bash> | ||