بروتوكول نقل الملفات نقل رسينك في اتجاه

StackOverflow https://stackoverflow.com/questions/338621

  •  19-08-2019
  •  | 
  •  

سؤال

وأنا تحميل ملف السجل في كثير من الأحيان من بروتوكول نقل الملفات خادم (أي أنا لست في السيطرة على، راجع للشغل)، وعلى ما يبدو بدلا rediciolus لتحميل الملف بأكمله في كل مرة.

وهكذا أنا أبحث عن برنامج (لينكس العش) أو وحدة بيرل ذلك بطريقة تجمع بين بروتوكول نقل الملفات ورسينك، و "التحديثات" فقط الملف.

وملف السجل يتزايد باستمرار.

وأي شئ من هذا القبيل حولها؟

هل كانت مفيدة؟

المحلول

Install curlftpfs (if on Windows, use cygwin)

# Create local mount path
mkdir -p /mnt/myftp

# Mount the destination ftp site using curlftpfs
curlftpfs -o allow_other ftp://myusername:mypassword@ftp.mydomain.com /mnt/myftp

# rsync inplace using append option
# use a long timeout value as the first long phase
# (the inplace comparison) takes a while
rsync -rzvvv --inplace --append --progress --stats --timeout=7200 /mnt/myftp/path/to/source/file.log /path/to/local/destination/file.log

# When you need to umount the ftp site
sudo umount myftp

# You can also mount from /etc/fstab by appending the following line
# curlftpfs#myusername:mypassword@ftp.mydomain.com /mnt/myftp fuse allow_other,rw,user,noauto 0 0

# References:
# http://linux.byexamples.com/archives/344/mounting-ftp-host-to-local-directory-on-top-of-fuse/
# http://lists.samba.org/archive/rsync/2007-May/017762.html

نصائح أخرى

و"لن تستأنف تحميل" العمل لقضيتك؟

ونتظاهر فقط نقلك تم إحباط المرة الأخيرة وإعادة التحميل من المكان الذي وقف

وكما قال في كيفية استخدام رسينك على FTP و <لأ href = "HTTP: //lftp.yar. رو / "يختلط =" نوفولو noreferrer "> LFTP لديه واسطة المرآة التي تجعل المزامنة أكثر كفاءة من curlftpfs + رسينك

وأعتقد أنك تحاول الحصول على ميزات رسينك من بروتوكول نقل الملفات وانها ليست الذهاب الى العمل بسهولة. أنصح حل رسينك النقي.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top