在Debian上備份FileZilla配置,可通過以下方式操作:
~/.config/filezilla/
或 ~/.filezilla/
目錄。/etc/filezilla/
目錄(如 filezilla.xml
、users.xml
)。cp -r ~/.config/filezilla ~/filezilla_backup
(或指定其他路徑)。sudo cp -r /etc/filezilla ~/filezilla_backup
。systemctl start filezilla-server
,然后通過瀏覽器訪問 http://服務器IP:21
,用管理賬戶登錄。File
→ Export
→ Servers
,選擇站點導出為XML文件。Edit
→ Users
,選擇用戶后點擊 Export
。編寫腳本定期備份配置文件,例如:
#!/bin/bash
BACKUP_DIR="/path/to/backup"
cp -r ~/.config/filezilla $BACKUP_DIR
sudo cp -r /etc/filezilla $BACKUP_DIR
通過 crontab -e
設置定時任務(如每天凌晨1點執行)。
注意:備份后確保文件權限正確,服務端配置需使用 sudo
操作?;謴蜁r直接復制備份文件到原路徑即可。