Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-08-2013, 07:49 PM   #1
Registered: Feb 2004
Location: US / EU
Distribution: Fedora 20
Posts: 188

Rep: Reputation: 19
Duplicity using scp vs. rsync

I'm hoping for some confirmation/explanation regarding use of scp vs. rsync in duplicity; I've read a couple of sources, but maybe it's just not 2x4 clear enough for me!

If I'm looking to do a regular sync of my important files, backing them up to another location, there's no real advantage of using rsync over scp in duplicity - and rather, could be seen as less desirable? Because, how I understand it, if I specify scp, and then I want to restore the files at some point, I will have the option to restore from the latest state of files back, or from as far back as I have specified Duplicity should keep.

The scp incrimental backups will indicate the "proper" current state; by that, I meant that a restoration of the most recent backup will not restore all the files from time immemorial, but only those which are current as per the most recent incrimental backup.

Rsync, by comparison, will only keep the latest set of files, acting as a pure rsync --delete. As such, no history will be available.

Am I correct in this, or am I completely confused?

duplicity incremental --ssh-options="-oIdentityFile=[key]" --encrypt-key [key] --exclude /home/path/VeryImportantDocs/notimportant /home/path/VeryImportantDocs/ scp://user@ip:[port]/VeryImportantDocsBak


duplicity incremental --ssh-options="-oIdentityFile=[key]" --encrypt-key [key] --exclude /home/path/VeryImportantDocs/notimportant /home/path/VeryImportantDocs/ rsync://user@ip:[port]/VeryImportantDocsBak


Last edited by ziphem; 10-09-2013 at 11:03 AM.
Old 10-10-2013, 09:41 AM   #2
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,078
Blog Entries: 4

Rep: Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179
Well, I don't use duplicity, but here's the difference between "scp" and "rsync."

"scp" is just a secure version of "cp = copy." It copies files from one place to another. Fairly dumb.

"rsync" (which has nothing at all to do with "sync") is a synchronizer, which among other things examines the target files to see if they need to be replaced, compresses the data during transfer across the wire, and so on. It basically tries to be sure that "the content of this directory is synchronized with the content of that directory," and to do it in an efficient way.
Old 10-10-2013, 12:10 PM   #3
Registered: Feb 2004
Location: US / EU
Distribution: Fedora 20
Posts: 188

Original Poster
Rep: Reputation: 19
Hi, thanks for the response. I am aware of the difference between the two, which is why I wasn't sure if specifying either SCP or rsync in duplicity had the same effect as using either on their own. I currently use rsync over SSH for all my network backups, which I store in a TrueCrypt folder. I unlock and mount the TrueCrypt remotely through SSH; even though I use HISTCONTROL=ignorespace and send the unlock command plus password with a space, I read somewhere that the bash commands could be stored elsewhere. It doesn't really matter that I have my Truecrypt password stored plaintext somewhere on my local (backed up) computer though, since it's in the same location as the files I'm backing up. But I figured that duplicity was a little more appropriate for this task, and maybe more secure in other manners that I'm not familiar with...?


Last edited by ziphem; 10-10-2013 at 04:07 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
rsync and scp fails when in a script keirvt Linux - Networking 6 03-24-2013 06:49 PM
rsync with scp behavior jjj0923 Linux - Newbie 3 07-12-2011 09:22 AM
I think I need rsync or scp -- something to copy from http://... to /somewhere/else nithra Linux - Server 2 01-18-2011 07:09 AM
SCP or rsync? centosfan Linux - General 4 01-09-2011 09:02 PM
[SOLVED] rsync -z vs. scp ... which one is faster over network? someshpr Linux - General 5 12-08-2010 07:06 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:22 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration