change ``bash headers to ``sh

This commit is contained in:
2025-08-22 15:59:04 +02:00
parent 3e049e1687
commit 8eea348112
80 changed files with 773 additions and 555 deletions

View File

@@ -6,25 +6,25 @@ requires: [ "ssh" ]
Mount a remote filesystem locally with fuse-sshfs:
```bash
```sh
sshfs *user*@192.168.0.10:/home/*user* /tmp/mnt
```
Unmount with:
```bash
```sh
fusermount -u /tmp/mnt
```
Set it up on /etc/fstab with:
```bash
```sh
sshfs#bkp@bkp.a-server.ninja:/media/store1/bkp /backup fuse defaults,allow_other,reconnect,delay_connect 0 0
```
Make image backup of sda1 and sda2 from one machine and pass it through ssh to another.
```bash
```sh
for i in {1,2};do sudo dd if=/dev/sda$i | ssh -C *user*@192.168.0.10 "dd of=/mnt/Backup/winback-oct-\"$i\".img" status=progress; done
```