1

My Ubuntu 14.04 LTS server recently went down. I have rebuilt the server using 16.04 LTS. I started Live Version through CD without installing so I can take files from my backup External USB drive that have my configuration, WordPress files on it hoping to copy the /etc and /var and whatever else I would need off my back up to the new server install. When I try to do so I get a message I don't have permission. What do I need to do to set permission so I can get these files over to the new Install. Also are there any other files I need to bring over to get the website to come online again" As always any help appreciated.

1 Answers1

0

When running the Ubuntu 16.04 Live option, you will be user unprivileged "ubuntu" by default. Besides that, /var/www/ on a server is typically user/group owned by the root (admin) user, which prevents writing to /var/www/ as unprivileged user, so you would use "sudo" to overcome this. You can e.g. do this in the Live Session :

sudo cp -av /media/ubuntu/backup-usb-disk/var/www/* /var-www-mountpoint/

Where /media/ubuntu/backup-usb-disk/var/www/ is your backup, and /var-www-mountpoint/ is the /var/www/ folder on your fresh server install.

albert j
  • 1,463