Append using sftp or scp?

Place to discuss Fedora and/or Red Hat
Post Reply
ZiaTioN
administrator
administrator
Posts: 460
Joined: Tue Apr 08, 2003 3:28 pm
Contact:

Append using sftp or scp?

Post by ZiaTioN » Wed Sep 06, 2006 9:12 am

Any ideas on how? I have read that sftp supports appending but cannot find it anywhere in the man pages or via the all knowing Google.

User avatar
Void Main
Site Admin
Site Admin
Posts: 5712
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main » Wed Sep 06, 2006 9:14 am

I use rsync via ssh for that. I wasn't aware that scp supports it but I'll do some digging.

ZiaTioN
administrator
administrator
Posts: 460
Joined: Tue Apr 08, 2003 3:28 pm
Contact:

Post by ZiaTioN » Wed Sep 06, 2006 9:19 am

Well according to what I have read scp does not but sftp does.

User avatar
Void Main
Site Admin
Site Admin
Posts: 5712
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main » Wed Sep 06, 2006 9:24 am

Can you share what you have with the rest of us? Why not use rsync?

ZiaTioN
administrator
administrator
Posts: 460
Joined: Tue Apr 08, 2003 3:28 pm
Contact:

Post by ZiaTioN » Wed Sep 06, 2006 9:25 am

What I have? I am not sure what you mean by that. Rsync, sure... How?

User avatar
Void Main
Site Admin
Site Admin
Posts: 5712
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main » Wed Sep 06, 2006 9:35 am

By "what you have" I mean where did you read that sftp was capable of it? rsync is very easy and works much like scp:

rsync -av -e ssh remoteserver:/directory/file localfile

It may need the --append switch but I don't think so.

$ man rsync

Post Reply