How to restore a root dir backup?

Asked by Artyom Aleksyuk

I have a backup of a / directory and I want to restore it, so recenly created files would be removed, deleted files would be restored and changed files would be replaced with an older version. I'm trying to run this command
sudo duplicity restore --no-encryption file:///home/user/backup/rootfs/ /
and it prints this:
Restore destination directory / already exists.
Will not overwrite.

Question information

Language:
English Edit question
Status:
Answered
For:
Duplicity Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
edso (ed.so) said :
#1

On 30.01.2011 14:51, h31 wrote:
> New question #143435 on Duplicity:
> https://answers.launchpad.net/duplicity/+question/143435
>
> I have a backup of a / directory and I want to restore it, so recenly created files would be removed, deleted files would be restored and changed files would be replaced with an older version. I'm trying to run this command
> sudo duplicity restore --no-encryption file:///home/user/backup/rootfs/ /
> and it prints this:
> Restore destination directory / already exists.
> Will not overwrite.
>

that's the designed behaviour. Duplicity will never overwrite data. You will have to restore to a temporary location and replace the folders yourself.

ede/duply.net

Can you help with this problem?

Provide an answer of your own, or ask Artyom Aleksyuk for more information if necessary.

To post a message you must log in.