Underleech Seedboxes
Please Login or Register


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.


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

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
Slow FTP speeds (Views: 3250)
CuteFTP (Views: 6657)
Filezilla set up (Views: 9318)

Powered by WHMCompleteSolution


Quick Navigation

Client Login



Remember Me


Follow Us on Twitter