add nginx notes, sparrow update, fulcrum sync, servr.js

This commit is contained in:
openoms
2024-03-25 10:44:16 +01:00
parent df75eaa016
commit a6a64ea590
7 changed files with 242 additions and 10 deletions

41
zfs/sync-fulcrum-db.md Normal file
View File

@@ -0,0 +1,41 @@
# Snapshot and mount a datadisk
## Create the snapshot, clone and mount
```
# create snapshot of /mnt/hdd - datadisk/hdd@hdd-snapshot
sudo zfs snap datadisk/hdd@hdd-snapshot
# display snapshots
zfs list -t snap
# clone snapshot (datadisk/hdd/hdd-snapshot-clone)
sudo zfs clone datadisk/hdd@hdd-snapshot datadisk/hdd/hdd-snapshot-clone
# see if mounted
zfs list
```
## Copy over the network
### on the remote computer
```
sudo mkdir -p /mnt/hdd/fulcrum_db
sudo chown admin:admin /mnt/hdd/fulcrum_db
```
### on the source computer
```
sudo scp -r /mnt/hdd/hdd-snapshot-clone/app-storage/fulcrum/db admin@$REMOTE_IP:/mnt/hdd/fulcrum_db/
```
### on the remote computer once finished
sudo mv /mnt/hdd/app-storage/fulcrum/db /mnt/hdd/app-storage/fulcrum/db-corrupt
sudo mv /mnt/hdd/fulcrum_db/db /mnt/hdd/app-storage/fulcrum/
sudo chown -R fulcrum:fulcrum /mnt/hdd/app-storage/fulcrum/db
sudo rm -rf /mnt/hdd/fulcrum_db
## OFF
```
zfs list
# destroy the clone filesystem
sudo zfs destroy datadisk/hdd/hdd-snapshot-clone
# destroy the snapshot
sudo zfs destroy datadisk/hdd@hdd-snapshot
zfs list
```