Is there a safe and reliable way to move data directory out of web root?

For future reference folks, you can also just symlink from /var/www/data (or wherever you set it up initially) to your new location after moving everything. I’m personally a fan of sudo rsync -avP as it preserves all files, permissions, ownership and shows progress as it goes, then deleting the original when I’ve confirmed everything (including hidden files) has been copied over.

That way there’s no need to update the DB and you won’t be told that’s unsupported.

3 Likes