# Restore backup without full path (crossplatform backuping/restoring)

**URL:** <https://forum.duplicati.com/t/restore-backup-without-full-path-crossplatform-backuping-restoring/5040>\
**Category:** Support\
**Created:** [October 23, 2018, 10:21am UTC](https://forum.duplicati.com/t/restore-backup-without-full-path-crossplatform-backuping-restoring/5040 "2018-10-23T10:21:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Deduj](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/d/90db22/32.png) [@Deduj](https://forum.duplicati.com/u/Deduj)\
**Post date:** [October 23, 2018, 10:21am UTC](https://forum.duplicati.com/t/restore-backup-without-full-path-crossplatform-backuping-restoring/5040/1 "2018-10-23T10:21:19Z")

</div>

Hello. Thank for such a good soft!  
I have a little question or a feature request if there is none. Let’s say i have a source folder with path “C:\Users\User\folder\_to\_backup”. I use default duplicati settings in web ui on windows to create a local backup. Then i restart my PC to access any kind of GNU/Linux, for example debian, mount drive with backup and restore files from backup with command  
`duplicati restore /path/to/backup --restore-path="/path/to/restore"`  
In this case i get a folder “C:” which contains a folder “Users” etc. but i want to get the folder folder\_to\_backup in /path/to/folder. So… is there any way to restore “folder\_to\_backup” to the “/path/to/restore” without full path (C:\Users…)?  
Thanks in advance!

P.S. On windows i use duplicati - 2.0.3.11\_canary\_2018-09-05. On debian i use latest version from github.

---

<div class="post-metadata">

**Author:** ![Deduj](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/d/90db22/32.png) [@Deduj](https://forum.duplicati.com/u/Deduj)\
**Post date:** [October 23, 2018, 1:51pm UTC](https://forum.duplicati.com/t/restore-backup-without-full-path-crossplatform-backuping-restoring/5040/2 "2018-10-23T13:51:01Z")

</div>

Probably i haven’t clarified my problem.  
Source (folder to backup): C:\Users\User\folder1 (ntfs partition, backup was made on windows)  
Current folder on linux: ~/  
Target folder to restore files from backups: ~/folder2  
Path to source folder on mounted partition: /mnt/folder3  
Command i used to restore (on linux):  
`duplicati restore /mnt/folder3 --restore-path=~/folder2`  
After this command i get this folder structure in $HOME:  
`~/C:/Users/User/folder1`  
I want to get:  
`~/folder2/folder1`  
or  
`~/folder2/content_of_folder1`  
Is there any way to do it? Without specifying “–restore-path” i get the same result.

---

<div class="post-metadata">

**Author:** ![ts678](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/t/8491ac/32.png) [@ts678](https://forum.duplicati.com/u/ts678)\
**Post date:** [October 24, 2018, 5:15pm UTC](https://forum.duplicati.com/t/restore-backup-without-full-path-crossplatform-backuping-restoring/5040/3 "2018-10-24T17:15:15Z")

</div>

Several things surprise me, but I don’t have this configuration to try.

/usr/bin/duplicati is the tray icon. I’d have expected it would require /usr/bin/duplicati-cli to do any command line restore. Could you use the web UI? Even without a database you can “Direct restore from backup files”.

[The RESTORE command](https://duplicati.readthedocs.io/en/latest/04-using-duplicati-from-the-command-line/#the-restore-command) takes a `<storage-URL>` which I’d have thought would have to begin with a “file://” however you wouldn’t have to set it up by hand if the web UI was successful in walking you through restore.

[–restore-path](https://duplicati.readthedocs.io/en/latest/06-advanced-options/#restore-path) should have an effect, unless the situation was so confused it was just dropped, e.g. by tray icon, or unless cross-platform is special. There are limitations too. See [Cross platform restore not possible](https://forum.duplicati.com/t/cross-platform-restore-not-possible/4520).

[–dont-compress-restore-paths](https://duplicati.readthedocs.io/en/latest/06-advanced-options/#dont-compress-restore-paths) ordinarily defaults to restoring the files at --restore-path without their folder, which you can just add on with --restore-path once you know it’s going to happen, but you got the full path.

Bottom line is I’m not sure what’s going on there, however isn’t a folder move an instant operation on Linux? Provided you’re not going to a different filesystem, it’s only a directory change. What’s the problem impact?

---

<div class="post-metadata">

**Author:** ![Deduj](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/d/90db22/32.png) [@Deduj](https://forum.duplicati.com/u/Deduj)\
**Post date:** [October 25, 2018, 5:17am UTC](https://forum.duplicati.com/t/restore-backup-without-full-path-crossplatform-backuping-restoring/5040/4 "2018-10-25T05:17:01Z")

</div>

Thanks a lot for your reply!  
I should have mentioned that on debian `duplicati` is just an alias for `duplicati-cli` i made.  
If i understood correctly the problem of crossplatform restore between windows and linux OS exists. I will try to restore directly to ntfs mounted partition. Hope this will fix this little issue.

---

<div class="post-metadata">

**Author:** ![Deduj](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/d/90db22/32.png) [@Deduj](https://forum.duplicati.com/u/Deduj)\
**Post date:** [October 26, 2018, 5:07am UTC](https://forum.duplicati.com/t/restore-backup-without-full-path-crossplatform-backuping-restoring/5040/5 "2018-10-26T05:07:48Z")

</div>

Unfortunately i was not succeed. Even if target folder (folder2 in my previous example) located on ntfs partition duplicati restores files with full path (C:/Users/…). Option `--dont-compress-restore-path` was accepted without any errors but didn’t affect the result. So… the only way to restore without full path is to restore on windows. Sad.
