mar10 / pyftpsync

Synchronize directories using FTP(S), SFTP, or file system access.
https://pyftpsync.readthedocs.io
MIT License
117 stars 25 forks source link

Add option to run without meta files #19

Closed iaimmiac closed 4 years ago

iaimmiac commented 7 years ago

.pyftpsync-meta.json file is being added within each directory on remote. Please add a flag to remove this file on completion if it is needed for ftp sync.

mar10 commented 7 years ago

This file (when stored on a remote FTP server) holds the real modification time of uploaded files. We need this values to make file time comparisons, because FTP servers do not keep the time stamps, but set the upload time instead. Currently I am working on a refactoring (release 2.0) and I keep this issue open for now. Maybe there can be an option to do a naive sync without reliable the stamps.

gnanet commented 6 years ago

I currently use pyftpsync to incremetally download a mailbox folder structure directly into a local mailbox folder, and if this metadata can speed up incremental functionality, i would not want them to be removed.

Instead i would welcome some option to tell pyftpsync where to replicate the folderstructure and place these metadata in the "shadow-folderstructure"

or even better: if i could specify a meta-folder, where pyftpsync can store/look-for the meta files, and additionally the files could include their folder-path info, so there would be no need to create loads of folders.

This meta-data-folder solution is applied for example in offlineimap as a config value called metadatadir

mar10 commented 6 years ago

I'd like to 'reserve' this feature request for an option to run without metadata (i.e. a 'dumb' syncing). You request is also useful, but requires a different implementation. Could you open a separate issue please?

gnanet commented 6 years ago

Gerne, hab aber mit rsync exclude von lokal zu lokal die mailfiles nach dem ftpsync gelöst ;)

34

github-actions[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

MythodeaLoL commented 3 years ago

+1 for this @mar10 it would be nice to have a single metadata file in the home, and also the option to customize its name. would avoid creating multiple metadatas in each directory, would love to have that option. it would be visually more organized with that.