"수정된 파일 업로드" 기능이 있는 FTP 클라이언트

"수정된 파일 업로드" 기능이 있는 FTP 클라이언트

저는 "마지막 업로드 이후 수정된 파일을 쉽게 업로드"할 수 있는 FTP 클라이언트를 찾고 있습니다. (또는 수정 날짜를 기준으로 디렉터리를 "동기화"합니다.)

나는 우분투에 있습니다.

지금까지 나는 gnome-commander, gftp, Midnight Commander를 사용해 보았습니다.

(ftp 파일 시스템을 마운트하고 사용할 수 있다는 것을 알고 있지만 cp -uFTP 마운트 파일 시스템에 대한 나쁜 경험이 많이 있습니다.)

답변1

저는 FileZilla를 사용하지만, lftp를 사용할 수도 있지만 SSH 없이 Rsync를 사용하고 싶은 것 같습니다.

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

나머지는 내가 해줄게. 소설로 충분합니다.

답변2

방금 알아냈어사이트카피내가 원하는 것을 정확하게 수행합니다. 방금 들어갔어요

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

그런 다음 입력만 하면 sitecopy --update myftpsite타임스탬프를 기준으로 파일이 "동기화"됩니다.

관련 정보