Backup from ftp-server to DS207

Questions reguarding modifying the FTP system may go here
Forum rules
Please note the disclaimer before modifying your Synology Product.

Backup from ftp-server to DS207

Postby bitmatic » Wed Mar 05, 2008 9:54 pm

Hi,

I want to setup my DS207 to automatically download files from a ftp-server to the DS207 every night.

Is that possible ?

/Jakob, Denmark
bitmatic
Trainee
Trainee
 
Posts: 17
Joined: Wed Oct 17, 2007 8:48 pm
Location: Aarhus, Denmark

Re: Backup from ftp-server to DS207

Postby HarryPotter » Thu Mar 13, 2008 10:43 am

please do not double post, your other thread has been deleted and this one will be moved to "ftp mod"
*Please do not Private Message me for support questions; leave it on the forum so all members can learn. Thanks!*

DS712+ / DSM 4.2 3211 / 2 x HD204UI (RAID0) / LMS 7.7.2-007
DS110+ / DSM 4.2 3211 / HD154UI
DS408 / DSM 4.0 2228 / 3 x ST31000340AS (RAID0) + 1 x HDS721010KLA330
DS207+ / DSM 3.1.1636 / ST31000340AS + WD5000KS
DS-106x / DSM 4.0 2228 (from DS108j) /

2 Squeezebox 3 + Boom
Rapsody N35

APC Smart UPS SUA750i
User avatar
HarryPotter
Honorary Moderator
Honorary Moderator
 
Posts: 12399
Joined: Mon Oct 23, 2006 12:48 pm
Location: Switzerland

Re: Backup from ftp-server to DS207

Postby Laurence Benjamin » Thu Apr 24, 2008 4:09 pm

Hej Jakob,

I use LFTP for this task but in reerse mode. ie. it uploads from my DS to an ftp server. I use it in mirror mode so that only changed files are uploaded. It is very robust and will happilly sit there all day reconnecting if disconnected and is smart enough to resume the upload from where it broke (and, depending on the ftp server, from the point in the file where it left off). if you have ipkg installed, simply do

Code: Select all
ipkg install lftp


I actually compiled my own because i wanted to use ftps (my ispdoesn't support sftp.. :o()

/Laurence
Laurence Benjamin
Rookie
Rookie
 
Posts: 32
Joined: Tue Nov 14, 2006 3:16 pm

Re: Backup from ftp-server to DS207

Postby bitmatic » Thu Apr 24, 2008 5:10 pm

Hi,

I actually solved the problem myself a few days ago. I use ncftp and have set up a cron job to do it automatically. Works like a charm.

Thanks anyway :)

/Jakob
bitmatic
Trainee
Trainee
 
Posts: 17
Joined: Wed Oct 17, 2007 8:48 pm
Location: Aarhus, Denmark

Re: Backup from ftp-server to DS207

Postby bitmatic » Thu Apr 24, 2008 5:12 pm

Moderator -> Is it possible for the OP to close a topic when the problem is solved ?
bitmatic
Trainee
Trainee
 
Posts: 17
Joined: Wed Oct 17, 2007 8:48 pm
Location: Aarhus, Denmark

Re: Backup from ftp-server to DS207

Postby lextar » Wed May 05, 2010 2:28 pm

bitmatic wrote:Hi,

I actually solved the problem myself a few days ago. I use ncftp and have set up a cron job to do it automatically. Works like a charm.

Thanks anyway :)

/Jakob


How did you that? I'm interested to download automatically a backup from a remote FTP server!
Thank you
lextar
I'm New!
I'm New!
 
Posts: 5
Joined: Wed May 05, 2010 2:26 pm

Re: Backup from ftp-server to DS207

Postby bitmatic » Fri May 07, 2010 9:19 pm

You need to have telnet access to your synology box... then:

1. install ncftp with the command "ipkg install ncftp"

2. make a script to download the files you want. I used it to download some logs from a weserver every night. With ncftp you only need a single line in the script. My script was something like this (the entire file):
"ncftpget -u ftpusername -p ftppassword ftphost destinationfolder filetodownload". You can see the complete syntax in http://www.ncftpd.com/ncftp/doc/ncftpget.html

3. Add a line to the file /etc/crontab to setup a job that downloads every night. Use a line that looks similar to:
"0 4 * * * root /volume1/scriptfilename.sh"
This line will setup a cron job that runs the scripfilename.sh script every night at 4.

And that's it.... :D
bitmatic
Trainee
Trainee
 
Posts: 17
Joined: Wed Oct 17, 2007 8:48 pm
Location: Aarhus, Denmark


Return to FTP Mods

Who is online

Users browsing this forum: No registered users and 1 guest