Recent

Author Topic: File sync system approach  (Read 12695 times)

aradeonas

  • Hero Member
  • *****
  • Posts: 824
Re: File sync system approach
« Reply #15 on: July 30, 2015, 12:50:53 pm »
So let me know please ;)

aradeonas

  • Hero Member
  • *****
  • Posts: 824
Re: File sync system approach
« Reply #16 on: August 12, 2015, 10:23:07 am »
OK I need your advice about this :
I want to upload and download files and I could use Apache or others for managing server and make a http client like download and upload manager but I want to have more control in the server so I should make TCP client server if Im not wrong.
So it is correct?Or Im going the wrong way?Should I make a custom protocol?

If I want to explain more I should say I want to make a custom and private file  sync system to move file between server and clients and I will use normal TCP file transfer but maybe I will need UDP for p2p transfer so I want to make simple system but I dont know what is the good way for doing it.

Graeme

  • Hero Member
  • *****
  • Posts: 1428
    • Graeme on the web
Re: File sync system approach
« Reply #17 on: August 12, 2015, 10:36:22 am »
For one of my projects I want to send and receive files between server and client and for years I saw demos in Indy,Synapse ... but I wonder if any one done it in real world and have experience or suggestion
Yes, the tiOPF project includes a tiFileSync utility - custom written (doesn't use existing tools like rsync) in pure Object Pascal. It allows you to sync between two local directories or between a local and remote (http) location. It was not written by myself, but rather by the creator of the tiOPF project, and he is very knowledgeable. The tiFileSync utility is also very well unit tested, so the code should be very stable. The utility was used in a commercial environment for many years already. The remote syncing support (optional) uses the HTTP protocol and the Indy components to implement it.

The program is located in the "tiopf_apps" repository, in the tiFileSync directory:
  http://sourceforge.net/p/tiopf/tiopf_apps/ci/master/tree/
« Last Edit: August 12, 2015, 11:19:59 am by Graeme »
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

aradeonas

  • Hero Member
  • *****
  • Posts: 824
Re: File sync system approach
« Reply #18 on: August 12, 2015, 10:40:19 am »
Can I use it for my custom usage like ability to use extra protocols like FTP o SMB if I want? what is the best way to doing it?
Take https://owncloud.com as an example,its a very much complicated version of what I want to do but take it as an example but I want to do it in pascal.

I know its much to ask but I always wanted to learn about this and I like to make it in Pascal.
« Last Edit: August 12, 2015, 10:45:44 am by aradeonas »

Thaddy

  • Hero Member
  • *****
  • Posts: 14368
  • Sensorship about opinions does not belong here.
Re: File sync system approach
« Reply #19 on: August 12, 2015, 10:49:58 am »
A time stamp, a date a cache and a hash, that's the way to call sync.
Object Pascal programmers should get rid of their "component fetish" especially with the non-visuals.

aradeonas

  • Hero Member
  • *****
  • Posts: 824
Re: File sync system approach
« Reply #20 on: August 12, 2015, 10:51:34 am »
A time stamp, a date a cache and a hash, that's the way to call sync.
;) good one and true !

Graeme its reminds me synopse . Are they doing the same job?
Can you explain it more?
« Last Edit: August 12, 2015, 10:55:50 am by aradeonas »

Graeme

  • Hero Member
  • *****
  • Posts: 1428
    • Graeme on the web
Re: File sync system approach
« Reply #21 on: August 12, 2015, 11:24:34 am »
Can I use it for my custom usage like ability to use extra protocols like FTP o SMB if I want? what is the best way to doing it?
As with all things tiOPF - the design is very good and very flexible. tiOPF and associated tools always use the power of design patterns to make the software more flexible. So yes, you will be able to easily add other protocol options like FTP etc to tiFileSync. Even using Synapse instead of Indy will be easy.
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

Graeme

  • Hero Member
  • *****
  • Posts: 1428
    • Graeme on the web
Re: File sync system approach
« Reply #22 on: August 12, 2015, 11:34:09 am »
Graeme its reminds me synopse . Are they doing the same job?
I've never used mORMot or Synopse, so can't really compare it to tiOPF. All I can say is that tiOPF is the oldest (been around since before 1999) and most stable Object Persistence Framework for Delphi and FPC I know of. I maintain the servers that run 1750+ unit test for tiOPF every 3 hours, testing everything in the framework and various text and database backends. It has been in production use for 16+ years. I've written most of my projects in the last 15 years using it, and development still continues today. To find out more about tiOPF please visit http://www.tiopf.com.
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

aradeonas

  • Hero Member
  • *****
  • Posts: 824
Re: File sync system approach
« Reply #23 on: August 12, 2015, 01:17:32 pm »
Thank you.I will work on it and ask about it.

 

TinyPortal © 2005-2018