I setup owncloud on my boot drive. I then wanted to move it. I used the commands at: https://www.digitalocean.com/community/tutorials/how-to-move-the-data-directory-for-owncloud-on-ubuntu-16-04
One of the commands backs-up before starting:
sudo rsync -av /var/www/owncloud/data/ ~/owncloud-data-bak/
what I don’t understand is the …/data/ directory of the above command because, and I don’t know linux that well, I see “data” as a directory with the containing information being moved to /owncloud-data-bak/ instead of /owncloud-data-bak/data/
So in looking in /owncloud-data-bak/ I no longer see the top level …/data/ directory that was in the originally installed directory.
it looks like this:
I’m pretty sure the structure was prior to the move:
so, then I setup a ZFS pool called OWC1 and moved the information over as below:
sudo mv /var/www/owncloud/data /owc1/owncloud/
sudo mv /var/www/owncloud/data /mnt/owncloud/data/
but got an error about /data/ not being there or something, I can’t remember but bear with me.
I then changed all the permissions and got my system back up.
Now the directory structure looks like this:
**/owc1/owncloud/jerry/files/ +all my data
So it looks like my directory structure is different since I moved it. Not that I’m worried, just don’t want to get in a situation where it will matter if I have to update owncloud.
Can someone point out what I did wrong or what’s going on?