Joomla! veebisaidi varundamise põhitõed

From Joomla! Documentation

Revision as of 08:55, 6 June 2018 by Eraser (talk | contribs) (Created page with "* Akeeba Backup salvestab su saidi .jpa failina, mille sa peaksid turvalisse kohta, kuhugi väljaspoole oma veebiserverit, ümber tõstma.")
Other languages:
Bahasa Indonesia • ‎Deutsch • ‎English • ‎Nederlands • ‎eesti • ‎español • ‎français • ‎português • ‎português do Brasil • ‎русский • ‎हिन्दी • ‎বাংলা • ‎中文(台灣)‎

Sul peaks alati olema olemas oma saidist värske varukoopia. Võib juhtuda õnnetusi ning on ka muid põhjuseid, miks varukoopia peaks alati olemas olema.
Andmekadu võivad põhjustada mitmed asjaolud. Kui saidi administraator pole turvalisusele tähelepanu pööranud, siis võib sait langeda rünnaku ohvriks või mõningatel harvadel juhtudel saadakse jagu ka turvatud saitidest. Joomla! on mõeldud meeskonna töö jaoks ning isegi head toimetajad võivad teha vigu, mis teevad saidile kahju.
Seega on palju põhjuseid, miks veebisaidi administraatoritel võib olla soov taastada veebisait mõnes varasemas töötavas olekus.

Harjuta nii saidi varundamist kui ka taastamist. Ära oota hädaolukorda, et panna oma oskuseid ja töövahendeid proovile. Inimesed loovad sageli varukoopia millestki, mis on tühi või vigane ning avastavad, et olulist infot ei varundatudki. Kellelegi ei meeldi laev, mis upub tühjade päästepaatidega ning samuti on tark harjutada kuidas saada inimesi päästepaadist uude töötavasse süsteemi.
Having a backup is not just about accidents, because a person well versed in backup can help with safe development of new features. Backup and restore help web managers create a staging website where new changes can be practiced without risking the production website. The clone can be created on a local machine acting as a test server, or any other folder or web hosting account supporting the SQL and PHP versions used by the site you've backed up.
It's easy for anyone to mix up their live site and staging site, so change the color of your staging site template to remind developers that the staging site is not live to the public.

Sissejuhatus

Joomla! saidist täieliku varukoopia tegemiseks on kaks sammu:

  1. Andmebaasis olev info, mis on enamasti sinu mysql andmebaasis.
  2. Failid ja kaustad sinu veebisaidil.

Kui sa ei tee varukoopiat mõlemast - failidest ja andmebaasist - siis on sinu varukoopia poolik.

Andmebaasi varundamine (1. osa)

One of the first steps to backup your Joomla site is to close the site to the public, backup the files, and then re-open the site. The steps from phpmyadmin.net omit this much needed operation. Go to the backend of your Joomla control panel, under global configuration, under the site tab, set "site offline" = yes.
This will then change the look of your configuration.php file in the root of your Joomla website.
An administrator will need to use your hosting control panel to view that file or use FTP to download and view the file. Inside configuration.php you can find the name of your database that will need backing up.
Look for the line with code resembling var $db = 'x1234'; or public $db = 'x1234'; Where x1234 is the name of your database.

Using the logon information for your server or hosting company open the PhpMyAdmin tool. Open the database and look for the table named "users" and then click the icon to "view" the data in that table.
You should see the names of staff who have accounts on your Joomla site. This view provides you the confidence that you are about to backup the correct database.
Kliki vahekaardil "Ekspordi" ning seejärel nuppu "Mine"
Veebilehitseja laadib sinu andmebaasi SQL-failina alla.
Otsi üles, kuhu veebilehitseja faili pani ning pane see kuhugi turvalisemasse kohta.

Serveri SQL andmebaase saab varundada ka ilma PhpMyAdminita kasutades SQL käsurida. Kui tead, kuidas seda teha, siis sa tõenäoliselt seda juhendit siin ei vaja.

Soovitame teha andmebaasist varukoopia vähemalt kord nädalas või lausa iga päev (ja sagedamini) kui sul on aktiivne sait.

Failisüsteemi varundamine (2. osa)

Continue with your site offline, see above. Your joomla folder and files can be backed up by downloading them with an FTP utility or using the file manager of your webhosting company. Both of these file options work, neither is better.

FTP tools move thousands of Joomla files and use more time. The FTP process can be slow and interrupted. Most hosting companies provide a control panel for taking thousands of files in one folder and then creating a zip file very quickly.
This means your site is offline for a shorter amount of time, and you have only one zip file. Go to your hosting control panel and look for their file manager icon.

If you use your hosting file manager, practice using that interface to select your server folder and creating a zip file. Download the zip file locally and then expand it locally to to see what files are inside that zip file. This option also let's you expand the same zip file for restoration to a staging site.

Backing up the Joomla files with FTP is no different than backing up a static HTML website. Download all the files and folders that exist in the main Joomla directory. The downloaded locaiton is a folder on your local computer. Be sure that the file and directory structure remains the same as it is in the live site. When you restore the files, you will use the FTP utility to upload the files to a new server.

As soon as you've downloaded your files via zip or FTP, change your site to be online.

Lisainfo varundamise kohta

Most administrators of a Joomla website have access to their MySQL data using the GUI interface called PhpMyAdmin, see How can I backup my database or table? for more information.

There are several automated backup extensions for Joomla! located in the Joomla! Extensions Directory. Here is a link for Joomla! Backup Extensions.

When servers are hosted in the same building as the staff, the web administrators should make extra care to store the backup copies of the database/files in a different building. Fire, theft, water or other damage often wipes out the live website AND backups. On a regular basis the web administrators should burn both the database and files to CD or save to an external hard drive off site.

Lisamärkused

2FA (2-etapiline autentimine)

If you use 2 factor authentication (available since Aug 2014) and you are locked out of your site you can rename the folder plugins/twofactorauth to twofactorauth.BAK and log in to your site's back-end. Then disable all plugins under the "twofactorauth" group. Finally, rename the plugins/twofactorauth.BAK folder of your site back to twofactorauth.

Automaatsed varundamise tööriistad

Akeeba

  • Akeeba Backup salvestab su saidi .jpa failina, mille sa peaksid turvalisse kohta, kuhugi väljaspoole oma veebiserverit, ümber tõstma.
  • .jpa failis on kõik kaustad, failid ja andmebaasifailid.
  • .jpa failis on ka saidi paigaldaja

These paragraphs are about backup, but it's worth a quick note that the Akeeba restore process is a fast guided process similar to a setup wizard.
Place 2 files on a new webhost.
a) your JPA file and b) Kickstart.php (from Akeeba)
You then use a browser to launch the restore process and unpack the .jpa file.
Palun loe Akeeba dokumentatsiooni.

Akeebat ja muid varundamise lisaprogramme saad alla laadida Joomla! lisade kataloogist