在 Linux 下备份 FileZilla 配置,主要是备份它的用户配置目录(包含站点管理器、传输设置、界面布局等)。
FileZilla(FileZilla Client)在 Linux 下的配置通常位于:
~/.config/filezilla/
常见重要文件:
filezilla.xml:主配置sitemanager.xml:站点管理器(FTP/SFTP 账号)recentservers.xml:最近服务器filezilla.ui:界面布局tar czvf filezilla-backup.tar.gz -C ~/.config filezilla
恢复时:
tar xzvf filezilla-backup.tar.gz -C ~/.config
cp ~/.config/filezilla/sitemanager.xml ~/filezilla-sitemanager-backup.xml
cp ~/.config/filezilla/filezilla.xml ~/filezilla-config-backup.xml
rsync -av ~/.config/filezilla/ /mnt/backup/filezilla/
如果你用的是 FileZilla Server(不是 Client):
配置文件通常在:
/opt/filezilla-server/etc/
或
/etc/filezilla-server/
备份示例:
sudo tar czvf filezilla-server-backup.tar.gz /opt/filezilla-server/etc
如果你告诉我:
我可以给你更精确的备份脚本。