FTP-клієнт з функцією "завантажувати змінені файли"


1

Я шукаю FTP-клієнта, який дозволяє мені легко "завантажувати файли, змінені з моменту останнього завантаження". (Або "синхронізувати" каталоги на основі дати модифікації.)

Я на Ubuntu.

Поки я пробував командир-гном, gftp, командир опівночі.

(Я знаю, що міг би монтувати файлову систему ftp та використовувати, cp -uале у мене дуже поганий досвід роботи з файловими системами, встановленими на FTP.)

Відповіді:


1

Я використовую FileZilla, але це справді звучить так, як ви хочете використовувати Rsync ... без SSH, хоча ви можете використовувати lftp.

http://lftp.yar.ru/lftp-man.html

зі сторінки чоловіка: mirror [OPTS] [source [target]]

 Mirror specified source directory to local target directory.
 If  target directory ends with a slash, the source base name
 is appended to target directory name. Source  and/or  target
 can be URLs pointing to directories.

      -c, --continue      continue a mirror job if possible
      -e, --delete        delete files not present at remote site
          --delete-first       delete old files before transferring new ones
          --depth-first        descend into subdirectories before transferring files
      -s, --allow-suid         set suid/sgid bits according to remote site
          --allow-chown   try to set owner and group on files
          --ascii         use ascii mode transfers (implies --ignore-size)
          --ignore-time        ignore time when deciding whether to download
          --ignore-size        ignore size when deciding whether to download
          --only-missing  download only missing files
          --only-existing download only files already existing at target
      -n, --only-newer    download only newer files (-c won't work)
          --no-empty-dirs don't create empty directories (implies --depth-first)
      -r, --no-recursion  don't go to subdirectories
          --no-symlinks   don't create symbolic links
      -p, --no-perms      don't set file permissions
          --no-umask      don't apply umask to file modes
      -R, --reverse       reverse mirror (put files)
      -L, --dereference   download symbolic links as files
      -N, --newer-than=SPEC    download only files newer than specified time
          --on-change=CMD      execute the command if anything has been changed
          --older-than=SPEC    download only files older than specified time
          --size-range=RANGE   download only files with size in specified range
      -P, --parallel[=N]  download N files in parallel
          --use-pget[-n=N]     use pget to transfer every single file
          --loop          loop until no changes found
      -i RX, --include RX include matching files
      -x RX, --exclude RX exclude matching files
      -I GP, --include-glob GP include matching files
      -X GP, --exclude-glob GP exclude matching files
      -v, --verbose[=level]    verbose operation
          --log=FILE      write lftp commands being executed to FILE
          --script=FILE        write lftp commands to FILE, but don't execute them
          --just-print, --dry-run   same as --script=-
          --use-cache          use cached directory listings
      --Remove-source-files    remove files after transfer (use with caution)
      -a             same as --allow-chown --allow-suid --no-umask

Я шкодую тебе решти. є достатньо для новели.


о, і воно також має дзеркало заднім ходом. це дзеркало -R (яке схоже на те, що ви хочете зробити)
0x90

0

Я щойно дізнався про сайткопію, і він робить саме те, що я хочу. Я щойно увійшов

site myftpsite
    server ftp.myftpsite.com
    remote /
    local /home/aioobe/work/mysite/public
    username myuser
    password mypass

а потім я просто набираю, sitecopy --update myftpsiteі він "синхронізує" файли на основі часової позначки.

Використовуючи наш веб-сайт, ви визнаєте, що прочитали та зрозуміли наші Політику щодо файлів cookie та Політику конфіденційності.
Licensed under cc by-sa 3.0 with attribution required.