Backup My Website to Synology via LFTP

There is no FTP in Synology, so I have to use LFTP

Here is my

#!/bin/bash -vx
lftp -u username,password<<END_SCRIPT
mirror -c -e –parallel=10 /remote_address /destiny_address


If you see “lftp –> Fatal error: Certificate verification: Not trusted” , you can follow this link or the steps below to fix it:

  1. Create the .lftp directory with the command : mkdir /root/.lftp
  2. Create and edit the rc file with the command : vi /root/.lftp/rc
  3. Press ‘i’ for edit mode
  4. Add the line : set ssl:verify-certificate no
  5. Exit edit mode by pressing Escape (twice)
  6. Close and save the file by pressing Z (capital z) twice)


After that I use Synology Task Scheduler to backup my website regularly, | tee -a logfile.text

Leave a Comment