2013-10-14 02:36:58 +00:00
|
|
|
---
|
|
|
|
title: ncftp
|
2015-11-24 05:02:17 +00:00
|
|
|
category: CLI
|
2013-10-14 02:36:58 +00:00
|
|
|
---
|
|
|
|
|
2017-09-21 08:30:07 +00:00
|
|
|
### Bookmarking
|
2012-07-03 08:09:36 +00:00
|
|
|
|
2017-09-21 08:30:07 +00:00
|
|
|
```bash
|
|
|
|
$ ncftp
|
|
|
|
$ open -u username ftp.host.com
|
|
|
|
$ bookmark bookmarkname
|
|
|
|
```
|
2012-07-03 08:09:36 +00:00
|
|
|
|
2017-09-21 08:30:07 +00:00
|
|
|
### Mass download
|
2012-07-03 08:09:36 +00:00
|
|
|
|
2017-09-21 08:30:07 +00:00
|
|
|
```bash
|
|
|
|
$ ncftpget -R bookmarkname /www/ .
|
|
|
|
```
|
2012-07-03 08:09:36 +00:00
|
|
|
|
2017-09-21 08:30:07 +00:00
|
|
|
### Mass upload
|
2012-07-03 08:09:36 +00:00
|
|
|
|
2017-09-21 08:30:07 +00:00
|
|
|
```bash
|
|
|
|
$ ncftpput -R bookmarkname /www/ .
|
|
|
|
```
|
2012-07-03 08:09:36 +00:00
|
|
|
|
2017-09-21 08:30:07 +00:00
|
|
|
### Upload just the changed files
|
2012-07-03 08:09:36 +00:00
|
|
|
|
2017-09-21 08:30:07 +00:00
|
|
|
```bash
|
|
|
|
$ git show --pretty="format:" --name-only HEAD~1
|
|
|
|
$ ncftpget -R -C log bookmarkname /www/ .
|
|
|
|
```
|