# Restore Nextcloud Backup to different location

**URL:** <https://help.nextcloud.com/t/restore-nextcloud-backup-to-different-location/34902>\
**Category:** 📦 Appliances (Docker, Snappy, VM, NCP, AIO)\
**Tags:** nc13, ncp\
**Created:** [August 8, 2018, 8:32pm UTC](https://help.nextcloud.com/t/restore-nextcloud-backup-to-different-location/34902 "2018-08-08T20:32:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![toprock](https://help.nextcloud.com/letter_avatar/toprock/32/6_22734026db12803ebb3e059622ac3534.png) [@toprock](https://help.nextcloud.com/u/toprock)\
**Post date:** [August 8, 2018, 8:32pm UTC](https://help.nextcloud.com/t/restore-nextcloud-backup-to-different-location/34902/1 "2018-08-08T20:32:37Z")

</div>

Hi,

i´m trying to move my nextcloudpi instance over from a RPi2 to a docker based x86 deployment.  
What would help me is to specify a new target directory via ncpweb as i had my data in /media/USBDrive/ and now datadir is /data/app/data.

I want to avoid mounting a volume to /media/USBDrive

---

<div class="post-metadata">

**Author:** ![nachoparker](https://help.nextcloud.com/user_avatar/help.nextcloud.com/nachoparker/32/2975_2.png) [@nachoparker](https://help.nextcloud.com/u/nachoparker)\
**Post date:** [August 15, 2018, 1:35pm UTC](https://help.nextcloud.com/t/restore-nextcloud-backup-to-different-location/34902/2 "2018-08-15T13:35:53Z")

</div>

if the data is already there, you will have to edit `/var/www/nextcloud/config/config.php` to point to the new location

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 4, 2024, 7:30am UTC](https://help.nextcloud.com/t/restore-nextcloud-backup-to-different-location/34902/3 "2024-12-04T07:30:34Z")

</div>



---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 9, 2024, 3:07pm UTC](https://help.nextcloud.com/t/restore-nextcloud-backup-to-different-location/34902/4 "2024-12-09T15:07:04Z")

</div>


