## ???? **Download Backup via SFTP – Command List (PDF-style)** ### ???? **SFTP Credentials** * **Host:** `eu-central-1.sftpcloud.io` * **Username:** `3bbe0b5892ec4589978232ed7664751f` * **Password:** `Yl3l8DdINSgFrroKMbYn4nf4eefONPOB` * **Port:** `22` --- ### ✅ **Option 1: Interactive SFTP (Files Only)** ```bash sftp -P 22 3bbe0b5892ec4589978232ed7664751f@eu-central-1.sftpcloud.io ``` Inside SFTP prompt: ```sftp cd backup mget * # Only downloads files, not folders bye ``` ⚠️ **Does not support folder downloads.** --- ### ✅ **Option 2: SCP (If Server Supports It)** ```bash scp -r 3bbe0b5892ec4589978232ed7664751f@eu-central-1.sftpcloud.io:/backup /your/local/path/ ``` * Downloads the entire `/backup` directory recursively. * Prompts for password. --- ### ✅ **Option 3: `lftp` (Recommended for Folder Downloads via SFTP)** #### ???? Install `lftp` ```bash sudo apt install lftp # Ubuntu/Debian sudo yum install lftp # CentOS/RHEL ``` #### ???? Connect via SFTP ```bash lftp -u 3bbe0b5892ec4589978232ed7664751f sftp://eu-central-1.sftpcloud.io ``` Enter password when prompted. #### ???? Download Folder Recursively ```lftp mirror /backup ./backup ``` * This downloads the `/backup` folder and all its subfolders to a local `./backup` folder. --- ### ✅ **Optional Script Example (`lftp`)** ```bash #!/bin/bash HOST="eu-central-1.sftpcloud.io" USER="3bbe0b5892ec4589978232ed7664751f" PASS="Yl3l8DdINSgFrroKMbYn4nf4eefONPOB" lftp -u "$USER","$PASS" sftp://$HOST <
Hai trovato utile questa risposta? 0 Utenti hanno trovato utile questa risposta (0 Voti)