Mobile app version of vmapp.org
Login or Join
Cooney921

: Program for FTP syncing, but only happens once? I want to use an ftp sync program which would work on either windows or linux that would connect to an ftp server and sync a folder from my

@Cooney921

Posted in: #Backups #Ftp

I want to use an ftp sync program which would work on either windows or linux that would connect to an ftp server and sync a folder from my computer to it. The catch is you can't see any files inside the ftp server. This means it'll just keep syncing the same files every time.

Is there a program that would upload the file in that folder once and not again, but check hourly or so for another file and then upload it?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Cooney921

1 Comments

Sorted by latest first Latest Oldest Best

 

@Looi9037786

I would suggest a Linux based solution, for ease of scripting and ubiquity of utilities.


Install 'wput' on your Linux machine
Make the following shell script:


#!/bin/bash
find /path/to/your/files -type f -mmin -60 -printf /tmp/bkup.lst
wput -B -b -a /var/log/wput-backup.log -i /tmp/bkup.lst -basename=/path/to/your/files ftp://user:password@ftp.yourserver.tld


... And save it as 'wput-backup.sh'. Make sure you give it execute privileges. Also, change /path/to/your/files to the path where your files to upload will be placed. You will also need to update the user, password, and yourserver.tld to suit your implementation. The find line lists all the files modified in the last 60 minutes and outputs a file listing these files. The wput line uses that file as a list of files to upload.


Setup a cron job to run this script every hour or so


Hope this helps.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme