Novice, maker-of-rookie-mistakes here! I implemented a wiki using VirtualBox (Ubuntu server 14.04) and BitNami MediaWiki (using Rubystack). However, I did not notice that my virtual machine was running out of space. Now, at 99%+ capacity, the machine's capabilities are limited. I created a new VBox with twice as much storage and now I know where to keep an eye on the capacity.
I have succeeded in using scp to copy the entire rubystack folder to the new machine. However, it does not preserve the permissions. Rsync has an option to preserve permissions but I get permission denied when I try to write to the correct location on the new machine, presumably because sudo on the source machine does not have any effect on the destination machine. When I rsync the rubystack folder into the home directory, even when I use -a, it makes the admin user the owner, recursively, instead of root, etc.
Short of going through both machines to fix the permissions, what are my options to move this wiki over to the new machine?
I am also open to expanding the size of the existing machine, but my initial research made it seem much more complicated than "simply" copying the files to a new machine. Maybe someone else has some feedback regarding this process?