mar10 / pyftpsync

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

[FEATURE] Storing metadata separate from the synced folder-pairs #34

Closed gnanet closed 4 years ago

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.

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

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.

Also for "virtually read-only" remotes you could store sync-metadata locally, which would eliminate the need for writable remote while doing download-functionality

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

gnanet commented 6 years ago

by the way, i could push my will, and could install pyftpsync on debian wheezy (7.11) with python2.7, and with a lot of manual pip-2.7 usage, and some installed scripts had to modified to /usr/bin/python2.7 because the default pyhon still points to 2.6:

Some pre dependent things:

python-pip python2.7 python2.7-dev libffi-dev libffi5 python-dbus

Then either one has to search for http: in the pip sources and ensure the defaults are all changed tzo https:

or one can add this option to all pip-2.7 calls: -i https://pypi.python.org/simple

easy_setup + setuptools is best installed as root like this:

wget https://bootstrap.pypa.io/ez_setup.py -O - | python2.7

Then i had lot of loops with pip-2.7 install pyftpsync before i collected these install commands:

pip-2.7 install keyring
pip-2.7 install "SecretStorage < 3"
pip-2.7 install "configparser >= 3.5"
pip-2.7 install "ipaddress"
pip-2.7 install enum34
pip-2.7 install pyftpsync
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.