Bug 562686 - scp should have a -u option
Summary: scp should have a -u option
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: openssh
Version: 12
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Jan F. Chadima
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-02-08 00:32 UTC by JW
Modified: 2010-02-08 07:29 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-02-08 07:29:46 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description JW 2010-02-08 00:32:44 UTC
Description of problem:
scp should have a -u option (update) like cp does.

Version-Release number of selected component (if applicable):
openssh-5.2p1-31

How reproducible:
Always

Steps to Reproduce:
1. man scp
2. /-u /
  
Actual results:
2. Pattern not found

Expected results:
2. -u. --update copy  only  when  the  SOURCE file is newer than the destination file or when the destination file is missing

Additional info:
In this day and age it is something of an anachronism that we still have cp, rcp, scp all as separate applications.  The copying of a file from one place to another should be relatively seamless, and the one 'cp' should be able to do it all.  If 'scp' functionality was incorporate into 'cp', or if 'scp' had a -u option then we could probably get rid of stop-gap programs like 'rsync'.

I would prefer to see a better 'cp' which supported network/intra-host copying. It would have an optional '-x' flag to control encryption, which would default to on for network copying.

Maybe this might also be a coreutils bug?

But in any case since scp will be around for many more years, it should have a simple -u option.

Comment 1 Tomas Mraz 2010-02-08 07:29:46 UTC
OpenSSH upstream declared that they will not add any new features to scp and they declared it a legacy application.
We will not diverge from upstream here.
If you have any special arguments which could convince upstream to implement your proposal, you can try to report the feature request here to the upstream bugzilla:
http://bugzilla.mindrot.org/


Note You need to log in before you can comment on or make changes to this bug.