How to restore after full system crash

DanielH     Oct 18 9:09PM 2017 GUI

Hi, i was just wondering what would be the procedure to restore a full backup after a system crash?


gchen    Oct 19 11:13AM 2017

For the GUI version, you can create an empty directory on another computer as the repository and then select the same storage. Under the restore tab you can click list revisions and select the repository id of the original repository and then you will be able to list all files in the original repository and select them to restore.

You can also restore using the CLI version by running the following commands:

mkdir -p path/to/restore/to
cd path/to/restore/to
duplicacy init repository_id storage_url 
duplicacy restore -r n   # n is the revision number that you want to restore

For the init command you need the repository id of the original repository. You can find it out by listing the snapshots directory in the storage.


Timo    Dec 2 10:49AM 2017

I got into the same situation to restore after a full crash, but unfortunately it does not work as intended! I really need my backup now...

I tried the process with the GUI as you described but "List revisions" and "List files" results in nothing.

The verbose log looks fine until this line: "16:45:57.853 id: , revisions: [], tag: , showFiles: false, showChunks: false"

Please help me, I don't wont to mess around with my precious backup...


gchen    Dec 2 2:12PM 2017

You can always use the CLI version to restore:

mkdir -p path/to/restore/to
cd path/to/restore/to
duplicacy init repository_id storage_url 
duplicacy restore -r n   # n is the revision number that you want to restore

On Windows, the Duplicacy CLI executable can be found under either C:\Program Files (x86)\Duplicacy or C:\Users\username\AppData\Local\Duplicacy, depending on if you installed Duplicacy for all users or for the current user only.

On macOS, the Duplicacy CLI executable is usually under /Applications/Duplicacy.app/Contents/Resources.

The repository_id can be found under the snapshots directory on the storage.


Timo    Dec 3 5:48AM 2017

Thanks for your fast reply, but it didn't get my any further unfortunately.

E.g., I get this:

D:\Restore>C:\Users\Timo\AppData\Local\Duplicacy\duplicacy_win_x64_2.0.9.exe -v list -a
Storage set to N:\Duplicacy
Listing all snapshot ids

D:\Restore>

With correct ID pre-entered:

D:\Restore>C:\Users\Timo\AppData\Local\Duplicacy\duplicacy_win_x64_2.0.9.exe -v list -id TIMO-LENOVO-Timo-SymLinks
Storage set to N:\Duplicacy
Listing revisions for snapshot TIMO-LENOVO-Timo-SymLinks

D:\Restore>

My chunks and snapshots folders are not empty...

Please advise me how to access my backup :'(


gchen    Dec 3 10:03AM 2017

Are there any files under n:\Duplicacy\snapshots\TIMO-LENOVO-Timo-SymLinks?


Timo    Dec 4 12:06PM 2017

Yes, 21 files in \snapshots\TIMO-LENOVO-Timo-SymLinks: 1, 22, 33, 42, 52, 53, 60-74

And another 39 files in my wife's backup snapshot - none of both backups is detected by Duplicacy.


gchen    Dec 4 3:20PM 2017

Is TIMO-LENOVO-Timo-SymLinks a symbolic link? What is the output of dir N:\Duplicacy\snapshots /a?


Timo    Dec 5 12:04PM 2017

It's not a symbolic link. Duplicacy was backing up a folder called SymLinks which includes 4 symbolic links to folders and the .duplicacy folder.

Output is:

N:\Duplicacy\snapshots>dir N:\Duplicacy\snapshots /a
 Datenträger in Laufwerk N: ist Sicherung I
 Volumeseriennummer: 3F77-A7C4

 Verzeichnis von N:\Duplicacy\snapshots

03.09.2017  15:19    <DIR>          .
03.09.2017  09:22    <DIR>          ..
24.10.2017  21:12    <DIR>          TIMO-LENOVO-Timo-SymLinks
26.10.2017  15:34    <DIR>          HYEONAES-TABLET-hyeon-Symlinks
               0 Datei(en),              0 Bytes
               4 Verzeichnis(se), 1.052.060.123.136 Bytes frei

N:\Duplicacy\snapshots>


gchen    Dec 5 3:39PM 2017

Can you try this version: https://acrosync.com/duplicacy/duplicacy_win_x64_2.1.0.exe?

Run the list command as:

duplicacy_win_x64_2.1.0.exe -d list -a

It will print out files/directories while listing the snapshots directory.


Timo    Dec 6 12:39PM 2017

Looks like this:

D:\Restore>C:\Users\Timo\AppData\Local\Duplicacy\duplicacy_win_x64_2.1.0.exe -d list -a
Storage set to N:\Duplicacy
Reading the environment variable DUPLICACY_PASSWORD
Reading password from keychain/keyring
Using a static salt and 16384 iterations for key derivation
Chunk read levels: [2 3], write level: 2
Compression level: 100
Average chunk size: 4194304
Maximum chunk size: 16777216
Minimum chunk size: 1048576
Chunk seed: 36a44ef1d058a5e57096fc226fbdaa9bb7c4acafd6fa82fec8542ef34dc1e9b3
Reading the environment variable DUPLICACY_PASSWORD
id: , revisions: [], tag: , showFiles: false, showChunks: false
Listing all snapshot ids

D:\Restore>

Any idea?


gchen    Dec 6 11:16PM 2017

Can you try this build: https://acrosync.com/duplicacy/duplicacy_win_x64_2.1.0a.exe?

I suspect it was the extra slash at the end of the path that caused the issue. This 2.1.0a build removes the extra slash.


Timo    Dec 8 12:56PM 2017

Thanks for you continuous support!

I think you almost nailed it:

D:\Restore>C:\Users\Timo\AppData\Local\Duplicacy\duplicacy_win_x64_2.1.0a.exe -d list -a
Storage set to N:\Duplicacy
Reading the environment variable DUPLICACY_PASSWORD
Reading password from keychain/keyring
Using a static salt and 16384 iterations for key derivation
Chunk read levels: [2 3], write level: 2
Compression level: 100
Average chunk size: 4194304
Maximum chunk size: 16777216
Minimum chunk size: 1048576
Chunk seed: 36a44ef1d058a5e57096fc226fbdaa9bb7c4acafd6fa82fec8542ef34dc1e9b3
Reading the environment variable DUPLICACY_PASSWORD
id: , revisions: [], tag: , showFiles: false, showChunks: false
Listing all snapshot ids
Listing N:\Duplicacy/snapshots error: Readdir N:\Duplicacy/snapshots: Das System kann den angegebenen Pfad nicht finden.

D:\Restore>

Looks like there still is a problem with the slashes \ vs. /


gchen    Dec 8 9:42PM 2017

I can get you a new build that converts / to \, but according to the Windows doc, / is a valid path separator.

What kind of drive is this N: is? A local disk or a networked drive?


Timo    Dec 9 6:57AM 2017

N: is a 2TB USB3.0 HDD now directly attached to my laptop. The file system is ext4 as it was connected to a Raspberry Pi for shared network backup via SFTP.


gchen    Dec 9 12:09PM 2017

Windows doesn't seem to support ext4 natively. What software do you use to mount the drive?


Timo    Dec 10 8:54AM 2017

Full-licensed versions of Paragon ExtFS for Windows and since yesterday Linux File Systems for Windows by Paragon Software


CheckMate    Dec 10 8:59AM 2017

You can install Ubuntu in Virtualbox, directly connect your external drive to Ubuntu, and run the Linux version of Duplicacy to do the restore.


gchen    Dec 10 11:16PM 2017

This build should work better: https://acrosync.com/duplicacy/duplicacy_win_x64_2.1.0b.exe


Timo    Dec 11 3:35PM 2017

Thanks, but output looks again like version 2.1.0:

D:\Restore>C:\Users\Timo\AppData\Local\Duplicacy\duplicacy_win_x64_2.1.0b.exe -d list -a
Storage set to N:\Duplicacy
Reading the environment variable DUPLICACY_PASSWORD
Reading password from keychain/keyring
Using a static salt and 16384 iterations for key derivation
Chunk read levels: [2 3], write level: 2
Compression level: 100
Average chunk size: 4194304
Maximum chunk size: 16777216
Minimum chunk size: 1048576
Chunk seed: 36a44ef1d058a5e57096fc226fbdaa9bb7c4acafd6fa82fec8542ef34dc1e9b3
Reading the environment variable DUPLICACY_PASSWORD
id: , revisions: [], tag: , showFiles: false, showChunks: false
Listing all snapshot ids

D:\Restore>

Will try the Ubuntu restore later!


Timo    Dec 12 2:30PM 2017

OK, got it to list all snapshots and revisions with Ubuntu! :-)

After discovering the latest revision number with Duplicacy under Ubuntu, I was finally able to start the restore under Windows by using the latest Duplicacy CLI build 2.1.0b and entering the correct revision number!

Any idea why Duplicacy CLI is working but not the GUI and not the "list" command?


Timo    Dec 13 12:18PM 2017

Quick update: I was able to restore 30GB out of 927GB until I run into missing chunks, e.g.

G:\Restore>C:\Users\Timo\AppData\Local\Duplicacy\duplicacy_win_x64_2.1.0b.exe restore -overwrite -r 74
Storage set to N:\Duplicacy
Restoring G:\Restore to revision 74
Chunk 434548aa7855f2bb3e36d6355acc901918f077e602fdd45e29652317a84c6f89 can't be found

G:\Restore>

Tried different revisions for restore but that 30GB is all I've got out of my backup.

-> Any tips before I give up on my Duplicacy backup?


gchen    Dec 13 2:01PM 2017

Does that file exist under N:\Duplicacy\chunks? The full path should be N:\Duplicacy\chunks\43\4348aa... if it exists.

If the file is there, it could be an issue with Paragon's ext4 disk driver (especially consider that Duplicacy can't even list N:\Duplicacy\snapshots properly with the standard API call). Can you try restoring file using Ubuntu just as how you did with the list command?


Timo    Dec 15 12:48PM 2017

No luck either, chunk is not there...

timo@timo-VirtualBox:/media/timo/Volume/Restore$ ~/Downloads/duplicacy_linux_x64_2.0.10 restore -overwrite -r 74
Storage set to /media/timo/Sicherung I/Duplicacy
Restoring /media/timo/Volume/Restore to revision 74
Chunk 434548aa7855f2bb3e36d6355acc901918f077e602fdd45e29652317a84c6f89 can't be found
timo@timo-VirtualBox:/media/timo/Volume/Restore$


Log in to comment
Copyright © Acrosync LLC 2016-2017