3

I have been trying to find a replacement to FileZilla which is a good program, but it doesn't allow yet to schedule files to transfer from time to time. I run into some, but they are all supported by Windows, (WinSCP and FTP Voyager). Is there something like that, or does it have to be made by scripting?

I have Raspbian Debian 7 (Wheezy) installed.

Script to be executed with cron:

cd /home/website/.wine/dosdevices/c:/_Auchan/_path
smbclient //sanfiler01.corp.pt.auchan/FTP_Externo -D "WEBSITE/_Auchan/_SOMETHING/" -U "corpauchanpt\sup_website" AKne123! -c "prompt; mget *; exit"

Changed to:

cd /var/www/LRD/musica/easy
smbclient //website.pt/FTP_Externo -D "website/xv01ZT/01/" -U corpauchanpt\sup_website" AKne123! -c "prompt; mget *; exit"
0

3 Answers 3

3

Take a look at rsync. It supports incremental file transfer, and you can schedule your backups with cron or any other scheduling tool.

4
  • 2
    Well, rsync won't do the scheduling, you'd need Windows tasks or cron for that. Jun 26, 2015 at 18:39
  • Rsync with at could work, too. Jun 27, 2015 at 4:21
  • Thanks for all the support so far. I have been trying to get Crontab to work for hours, but without success. Used cp cp -r cp -rf even tried within the RPi from a folder to another, it never worked. I checked the paths, they seem to be fine, I dont understand what could i be doing wrong.
    – angelfmf
    Jun 30, 2015 at 9:15
  • Ok, got it to work, it was a simple matter of path being missing the root folders /home/pi normally they are not necessary but, since then it has worked. Although I still can't do it locally. I'm using a script now, with instructions of samba and to be executed with crontab. My tutor gave me a script he had from a linux computer to transfer files at a certain time, and im supposed to convert it to use in raspberry pi. I think it´s probably a matter of changing paths, but io´m not sure it will still work. I'll edit the question with that*
    – angelfmf
    Jun 30, 2015 at 11:18
1

Why not use FileZilla? The GUI doesn't support scheduled operations, but you can do that with cron/windows scheduled tasks and the command line. The last example on the documentation page even explains how to use saved machines/credentials.

Example:

filezilla ftp://username:[email protected] --local="C:\server2 downloads"

Example with different paths and sftp instead of ftp:

filezilla sftp://username:[email protected]:22/directory_path_here -- local="/home/pi/directory/file"

Documentation: https://wiki.filezilla-project.org/Command-line_arguments_(Client)

11
  • But does it only work with windows/cron? Because I have Raspbian as my OS. That line of code would not work in this case
    – angelfmf
    Jul 1, 2015 at 15:04
  • @angelfmf: I wasn't sure what operating system you needed the automation on. This would work both on a Windows machine using Task Scheduler, and on Raspbian using cron
    – Jacobm001
    Jul 1, 2015 at 15:05
  • @angelfmf: example added
    – Jacobm001
    Jul 1, 2015 at 15:15
  • That is good news, can you show me an example of how to change the path. Would this work? filezilla ftp://username:[email protected] --localhost/LRD/something Don't know what 0 means. Sorry i sent the before comment by mistake.
    – angelfmf
    Jul 1, 2015 at 15:18
  • I think the --localhost argument needs an = before the path and " around the path. Other than that, I can't really be sure without trying it on your machines' configurations. Try plugging it into the terminal and see if it works :)
    – Jacobm001
    Jul 1, 2015 at 15:23
1

Try CyberDuck. I use this to access the Raspberry PI files. Easy to use and free.

1
  • Thanks for the suggestion. But although it is for the Linux system it doesn't have the auto-tranfer feature, does it? I´m trying to use filezilla together with cron following instructions from Jacobm001 but haven't succeded yet. Can't get past some errors.
    – angelfmf
    Jul 2, 2015 at 8:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.