Moving from sdb1 to sda1

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Posts: 58
Joined: Sat Mar 20, 2021 5:03 pm

Re: Moving from sdb1 to sda1

Post by Burgess85 »

Joulinar wrote: Fri Jul 30, 2021 9:05 pm Again, which files you are looking for?
So sorry where are /var/www/ and also nextcloud files stored?
User avatar
Site Admin
Posts: 3214
Joined: Sat Nov 18, 2017 6:21 pm

Re: Moving from sdb1 to sda1

Post by MichaIng »

/var/www is stored on your root partition, so the storage medium you installed/flashed DietPi initially to. Based on your lsblk output this should be the SD card indeed.

The Nextcloud data (not the PHP files and website resources, but your userdata) are stored at /mnt/dietpi_userdata/nextcloud_data. That way you can move it together with other userdata to any external drive via dietpi-drive_manager, selecting the desired target drive and then the "Select to transfer DietPi user data to this drive" option. After done, /mnt/dietpi_userdata/nextcloud_data is still the valid path, but you will see that /mnt/dietpi_userdata has become a symbolic link to your chosen external drive:

Code: Select all

ls -l /mnt/dietpi_userdata
Post Reply