After searching everywhere I have not managed to find a specific answer for my question.
On Windows there is an application called FTPbox that will automatically sync a local folder with an ftp one every set period of time.
My question is, how do I achieve the same thing using Ubuntu? The main thing is here that I dont want to have to do it manually. It needs to be a totally automatic process with no human intervention required (obviously I will have to set this up if that classes as human intervention LOL).
Many thanks in anticipation for helpful answers.
-Edward
First solution
Install
lftp
after that create script
Save it on some place with name
upload.sh
. Give it+x
permission.Setup
crontab
to run this command on everyx
period of timeFor editing crontab run
For running command on every 5 min code is
on every hour
to run on 4 am
Solution two
Create a small and easy script called
lftp-script
thatLFTP
can read:Finally you can run
LFTP
and start the synchronisation. Set crontab like I write but put commandsomething like this
Solution three
Install
curlftpfs
you need to do in order to mount ftp locally is to to run these commands create dir witch will be sync-ed
mount remote ftp dir to local
user:pass is the username and password to log into ftp account.
You can add
curlftpfs
tofstab
for automatic mounting by using this line :