Underleech Seedboxes
Please Login or Register

Knowledgebase

Linux FTP Sync

For those of you who want to keep your local directory synced so you don't have to worry about remembering to download your files I have created a script for you.

 

First though we need to edit /etc/lftp.conf and add this line:
set ssl:verify-certificate no

We use self signed certificates so this will stop it from erroring out.

 

Next, I created a file ~/syncftp Change the script below to match your connection settings.

#!/bin/bash

pidof lftp >& /dev/null
if [ $? -ne 0 ]
then
lftp -e "mirror --continue --parallel=10 /downloads /home/myusername/downloads;quit" -p **PORT** -u **USERNAME**,**PASSWORD** XXX.underleech.org
fi

Remember to chmod +x the file you created!

Then add this to your cron:
*/30 * * * * /home/myusername/syncftp

 



Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article

Also Read
CuteFTP (Views: 6603)
Slow FTP speeds (Views: 3184)
Filezilla set up (Views: 9246)

Powered by WHMCompleteSolution

Language:

Quick Navigation

Client Login

Email

Password

Remember Me

Search



Follow Us on Twitter