This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Restore from backup.zip
#1
Restore from backup.zip
If you followed my guides for Ubuntu and CentOS you will have noticed I recommend backing up to a zip for easy transfer.

If you need to re-setup a server/VPS with Sentora, and re-install your backup this is how you do it.

To start with make a FTP user (once sentora is installed) with access to the Master home directory.

This should be:

Code:
/var/sentora/hostdata/zadmin/

Next thing to do is upload the backup.zip to the master home (you should see the public_html folder).

Once it is uploaded we need to extract it.

You do this by running:

Code:
unzip /var/sentora/hostdata/zadmin/backup.zip -d /var/sentora/hostdata/zadmin/

Once that is finished we need to set the correct permissions. At the moment it will be set to root:root.

We do this by running:

Code:
cd /var/sentora/hostdata/zadmin/public_html/
find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;
find . -type d -exec chown www-data:www-data {} \;
find . -type f -exec chown www-data:www-data {} \;

Once this is done all the files and directory's will be set with the correct file permissions and user.

As some sites need full read write to folders you will need to change the permissions to the folders as needed.

For Wordpress and MyBB theses are the permissions that need changing:

(obviously this is just an example, edit the locations as needed)

Code:
chmod 777 /var/sentora/hostdata/zadmin/public_html/MyBB/inc/config.php
chmod 777 /var/sentora/hostdata/zadmin/public_html/MyBB/inc/settings.php
chmod 777 /var/sentora/hostdata/zadmin/public_html/MyBB/uploads
chmod 777 /var/sentora/hostdata/zadmin/public_html/MyBB/uploads/avatars
chmod 777 /var/sentora/hostdata/zadmin/public_html/MyBB/inc/languages
chmod 777 /var/sentora/hostdata/zadmin/public_html/MyBB/admin/backups
chmod 777 /var/sentora/hostdata/zadmin/public_html/MyBB/cache
chmod 777 /var/sentora/hostdata/zadmin/public_html/MyBB/cache/themes
chmod -R 777 /var/sentora/hostdata/zadmin/public_html/Wordpress/wp-content

Most site software will give you a warning about permissions if they are not correct. If not, check with their site to set the correct permissions.
Reply
Thanks given by:


Possibly Related Threads…
Thread Author Replies Views Last Post
Restore Module Menu TGates 15 62 ,026 01-31-2021, 01:37 AM
Last Post: spoonman
Backup to Dropbox in Ubuntu pinguy 16 45 ,418 04-06-2017, 12:50 AM
Last Post: FernandoGarcia
Repair Backup Module TGates 2 13 ,668 09-28-2016, 10:56 PM
Last Post: bluebrad

Forum Jump:


Users browsing this thread: 1 Guest(s)