Page 1 of 1

General approach for syncing files (not subdirs) with ftp

Posted: Sat Oct 25, 2025 6:53 pm
by gerograph
Next step for my Ticklish ToDo list, is to sync the list files with a ftp server....This post should discuss the general approach of syncing files

prerequisites
  • as of today, I donnot know much about ftp servers, network etc...
  • simple ftp server no ssl etc...
  • looks like hollywood core got all the needed commands
  • it sends/receives ftp commands via a communication channel an gets data via another channel, right? (found some hints here and have to do additional reading on that)
  • Should at least sync between amigaOS4, Windows, Android...even better also Linux, MorphOS and AOS3
my beginners approach....
  • on startup, I will sync client dir and server dir by date and time
  • if my app downloads a file from ftp server in order to use it, I thought I place a ".lock" file on the server, which states the clients MAC Adress*
  • a locked file will then not be editable by another client
questions
  • What happens, if one of the clients uses a different time zone?
  • *Is there another unique identifier other than MAC Adress? (as not every platform can provide a MAC Adress)
  • Is my "beginners approach" a good idea?
  • Or do you rather suggest other approaches?
  • Any hints, Code Snippets, Webpages etc. which might be helpful for a start?
Thanks for your ideas!