Portál AbcLinuxu, 25. listopadu 2026 23:59


Dotaz: Auto upload ftp

8.8.2003 20:27 bj
Auto upload ftp
Přečteno: 517×
Odpovědět | Admin
Milí kolegové, pomozte mi jak jednoduše nastavit crond na automatický upload obsahu adresaáře vč. podadresářů na ftp server, včetně automatického přihlášení přes login a pswd?

Děkuji za Vaši nápovědu! -bj-
Nástroje: Začni sledovat (0) ?Zašle upozornění na váš email při vložení nového komentáře.

Odpovědi

8.8.2003 20:37 RWS
Rozbalit Rozbalit vše Auto upload ftp
Odpovědět | | Sbalit | Link | Blokovat | Admin
Puvodne jsem chtel odpovedet pouze "ncftp":)

Bohuzel to se uz vic rozvest neda, proste balik ncftp, ma bookmarky, ma taky ncftpget a ncftpput, coz by melo byt presne to, co potrebujes

Proste spust ncftpput a uvidis

Usages:
  ncftpput [flags] remote-host remote-dir local-files...   (mode 1)
  ncftpput -f login.cfg [flags] remote-dir local-files...  (mode 2)
  ncftpput -c remote-host remote-path-name < stdin  (mode 3)

Flags:
  -u XX  Use username XX instead of anonymous.
  -p XX  Use password XX with the username.
  -P XX  Use port number XX instead of the default FTP service port (21).
  -j XX  Use account XX with the account (deprecated).
  -d XX  Use the file XX for debug logging.
  -e XX  Use the file XX for error logging.
  -U XX  Use value XX for the umask.
  -t XX  Timeout after XX seconds.
  -a     Use ASCII transfer type instead of binary.
  -m     Attempt to mkdir the dstdir before copying.
  -v/-V  Do (do not) use progress meters.
  -f XX  Read the file XX for host, user, and password information.
  -c     Use stdin as input file to write on remote host.
  -A     Append to remote files instead of overwriting them.
  -z/-Z  Do (do not) try to resume uploads (default: -Z).
  -T XX  Upload into temporary files prefixed by XX.
  -S XX  Upload into temporary files suffixed by XX.
  -DD    Delete local file after successfully uploading it.
  -b     Run in background (submit job to "ncftpbatch" and run).
  -bb    Same as "-b" but queue only (do not run "ncftpbatch").
  -E     Use regular (PORT) data connections.
  -F     Use passive (PASV) data connections (default).
  -y     Try using "SITE UTIME" to preserve timestamps on remote host.
  -B XX  Try setting the SO_SNDBUF size to XX.
  -r XX  Redial XX times until connected.
  -W XX  Send raw FTP command XX after logging in.
  -X XX  Send raw FTP command XX after each file transferred.
  -Y XX  Send raw FTP command XX before logging out.
  -R     Recursive mode; copy whole directory trees.

Examples:
  ncftpput -u gleason -p my.password Elwood.probe.net /home/gleason stuff.txt
  ncftpput -u gleason Elwood.probe.net /home/gleason a.txt (prompt for pass)
  ncftpput -a -u gleason -p my.password -m -U 007 Bozo.probe.net /tmp/tmpdir a.txt
  tar cvf - /home | ncftpput -u operator -c Server.probe.net /backups/monday.tar
8.8.2003 22:15 bj
Rozbalit Rozbalit vše Auto upload ftp
Paráda! Leze to jak po másle! :o)Děkuji!

Založit nové vlákno • Nahoru

Tiskni Sdílej: Linkuj Jaggni to Vybrali.sme.sk Google Del.icio.us Facebook

ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.