← back to Kravet Sheet Sync 2026 04 20
__pycache__/kravet_ftp_mirror.cpython-314.pyc
53 lines
+
p��i� � � � R t ^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RI H
t
Ht ^ RIH
t
^ RItR t ! R R4 tR tR tR t]R
8X d ]! 4 R# R# ] d( ]P, ! 4 ]P. ! ^4 R# i ; i)a@
Mirror Kravet SFTP (ftp.kravet.com:22) to local disk.
Strategy:
- 8 worker threads, each with its own paramiko Transport (SFTP needs 1 session per thread)
- Atomic writes: download to <path>.tmp, rename on success
- Resume: skip files where local size == remote size
- Progress: JSONL log line per completed file + periodic summary
- Crash-safe: re-running continues from where it left off
Run:
source /root/.kravet-sftp.env && \
python3 kravet_ftp_mirror.py --dest /root/kravet-ftp-mirror \
--threads 8 --log /root/kravet-ftp-mirror.log
N)�ThreadPoolExecutor�as_completed)�Queuec � � / p\ V 4 ;_uu_ 4 pV FL pVP 4 pV'