feat: add /mnt folder to Syncthing sync

Added /mnt folder synchronization for backups (6.8GB) and PostgreSQL data. Updated documentation in README.md, .claude/workflow.md and .gitignore to exclude large backup files.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
SamoilenkoVadym 2025-11-05 16:52:52 +00:00
parent 28bc0e2fa1
commit 972003dba2
18 changed files with 77 additions and 3 deletions

View file

@ -11,6 +11,7 @@
- `/opt` (сервер) ↔ `/Volumes/SSD/Aimpress_Cloud_Prod/opt` (Mac)
- `/data` (сервер) ↔ `/Volumes/SSD/Aimpress_Cloud_Prod/data` (Mac)
- `/home/ubuntu` (сервер) ↔ `/Volumes/SSD/Aimpress_Cloud_Prod/home` (Mac)
- `/mnt` (сервер) ↔ `/Volumes/SSD/Aimpress_Cloud_Prod/mnt` (Mac) - бэкапы и PostgreSQL данные
- **Автозапуск:** Да, через systemd (сервер) и brew services (Mac)
### 2. GitHub (Версионный контроль)
@ -144,7 +145,7 @@ git remote -v
### Размер синхронизированных данных:
```bash
du -sh /Volumes/SSD/Aimpress_Cloud_Prod/{opt,data,home}
du -sh /Volumes/SSD/Aimpress_Cloud_Prod/{opt,data,home,mnt}
```
---

1
.gitignore vendored
View file

@ -67,6 +67,7 @@ config/secrets/
*.zip
*.bak
opt/05-backups/
mnt/backups/
**/backups/*.tar.gz
**/backups/*.sql.gz

View file

@ -13,7 +13,7 @@ Production infrastructure для AI-Impress с полной автоматиза
Мгновенная двусторонняя синхронизация между Mac и сервером.
- **Режим:** Send & Receive (bidirectional)
- **Папки:** `/opt`, `/data`, `/home/ubuntu`
- **Папки:** `/opt`, `/data`, `/home/ubuntu`, `/mnt`
- **Автозапуск:** systemd (сервер) + brew services (Mac)
- **Скорость:** 10-30 секунд
@ -47,6 +47,9 @@ Production infrastructure для AI-Impress с полной автоматиза
│ └── 06-webflow/ # Landing pages
├── data/ # Данные приложений
├── home/ # /home/ubuntu
├── mnt/ # Смонтированные диски
│ ├── backups/ # Бэкапы системы (6.8GB)
│ └── psql-data/ # Данные PostgreSQL
└── .claude/ # Документация для Claude Code
├── workflow.md # Рабочий процесс
└── project-structure.md # Детальная структура

View file

@ -128,6 +128,50 @@
<maxTotalSize>4096</maxTotalSize>
</xattrFilter>
</folder>
<folder id="mnt" label="mnt" path="/mnt" type="sendreceive" rescanIntervalS="3600" fsWatcherEnabled="true" fsWatcherDelayS="10" fsWatcherTimeoutS="0" ignorePerms="false" autoNormalize="true">
<filesystemType>basic</filesystemType>
<device id="FVT5C5F-R6BTJTF-6Y4NOWA-BS2EU3P-WM5MPNK-NQGJHWH-4MMZ4VK-PB4U6AT" introducedBy="">
<encryptionPassword></encryptionPassword>
</device>
<device id="7WWT3Q3-IL2RSA2-XHO6JKN-LCL2XEL-NWFZCDJ-6XVWIZ7-NYJ6JKJ-C53YCAC" introducedBy="">
<encryptionPassword></encryptionPassword>
</device>
<minDiskFree unit="">0</minDiskFree>
<versioning>
<cleanupIntervalS>3600</cleanupIntervalS>
<fsPath></fsPath>
<fsType>basic</fsType>
</versioning>
<copiers>0</copiers>
<pullerMaxPendingKiB>0</pullerMaxPendingKiB>
<hashers>0</hashers>
<order>random</order>
<ignoreDelete>false</ignoreDelete>
<scanProgressIntervalS>0</scanProgressIntervalS>
<pullerPauseS>0</pullerPauseS>
<maxConflicts>10</maxConflicts>
<disableSparseFiles>false</disableSparseFiles>
<disableTempIndexes>false</disableTempIndexes>
<paused>false</paused>
<weakHashThresholdPct>25</weakHashThresholdPct>
<markerName>.stfolder</markerName>
<copyOwnershipFromParent>false</copyOwnershipFromParent>
<modTimeWindowS>0</modTimeWindowS>
<maxConcurrentWrites>2</maxConcurrentWrites>
<disableFsync>false</disableFsync>
<blockPullOrder>standard</blockPullOrder>
<copyRangeMethod>standard</copyRangeMethod>
<caseSensitiveFS>false</caseSensitiveFS>
<junctionsAsDirs>false</junctionsAsDirs>
<syncOwnership>false</syncOwnership>
<sendOwnership>false</sendOwnership>
<syncXattrs>false</syncXattrs>
<sendXattrs>false</sendXattrs>
<xattrFilter>
<maxSingleEntrySize>1024</maxSingleEntrySize>
<maxTotalSize>4096</maxTotalSize>
</xattrFilter>
</folder>
<folder id="opt" label="opt" path="/opt" type="sendreceive" rescanIntervalS="3600" fsWatcherEnabled="true" fsWatcherDelayS="10" fsWatcherTimeoutS="0" ignorePerms="false" autoNormalize="true">
<filesystemType>basic</filesystemType>
<device id="FVT5C5F-R6BTJTF-6Y4NOWA-BS2EU3P-WM5MPNK-NQGJHWH-4MMZ4VK-PB4U6AT" introducedBy="">

View file

@ -1 +1 @@
MANIFEST-000009
MANIFEST-000016

View file

@ -41,3 +41,28 @@
16:31:02.350017 table@compaction committed F+1 S-189KiB Ke·0 D·8154 T·124.48305ms
16:31:02.351922 table@remove removed @6
16:31:02.352011 table@remove removed @4
16:50:43.821396 db@close closing
16:50:43.822411 db@close done T·1.018665ms
=============== Nov 5, 2025 (UTC) ===============
16:50:43.887062 log@legend F·NumFile S·FileSize N·Entry C·BadEntry B·BadBlock Ke·KeyError D·DroppedEntry L·Level Q·SeqNum T·TimeElapsed
16:50:43.887378 version@stat F·[0 4] S·6MiB[0B 6MiB] Sc·[0.00 0.07]
16:50:43.887407 db@open opening
16:50:43.887480 journal@recovery F·1
16:50:43.887757 journal@recovery recovering @8
16:50:43.985176 memdb@flush created L0@14 N·43745 S·2MiB "\x00\x00\x00..env,v104463":"\x0e\x00\x00..log,v144456"
16:50:43.985631 version@stat F·[1 4] S·9MiB[2MiB 6MiB] Sc·[0.25 0.07]
16:50:43.991040 db@janitor F·8 G·1
16:50:43.991063 db@janitor removing table-7
16:50:43.991254 db@open done T·103.828158ms
16:50:44.466473 table@compaction L0·1 -> L1·4 S·9MiB Q·148008
16:50:44.627226 table@build created L1@17 N·17504 S·2MiB "\x00\x00\x00..ure,v396":"\x00\x00\x00..tsx,v119548"
16:50:44.670681 table@build created L1@18 N·23027 S·2MiB "\x00\x00\x00..tsx,v128302":"\x01\x00\x00...ts,v114002"
16:50:44.730606 table@build created L1@19 N·39977 S·2MiB "\x01\x00\x00...ts,v127331":"\v\x00\x00..\x00%F,v47827"
16:50:44.759707 table@build created L1@20 N·18828 S·2MiB "\v\x00\x00..\x00%G,v47834":"\x0e\x00\x00..png,v31958"
16:50:44.765664 table@build created L1@21 N·4026 S·313KiB "\x0e\x00\x00..jpg,v25487":"\x0e\x00\x00..4e8,v90139"
16:50:44.765713 version@stat F·[0 5] S·8MiB[0B 8MiB] Sc·[0.00 0.08]
16:50:44.766328 table@compaction committed F~ S-1MiB Ke·0 D·36475 T·299.814837ms
16:50:44.766849 table@remove removed @10
16:50:44.767286 table@remove removed @11
16:50:44.767722 table@remove removed @12
16:50:44.768042 table@remove removed @13