Even if the whole website is deleted from the server it can easily be restored as long as the relevant files have been backed up to a local hard drive. Admin / Backup can be used or they can be downloaded via FTP (or cPanel File Manager).
The website and all its content can just as easily be moved from one folder to another, or installed on a different server altogether. The files to back up are:
- All the files in the /pages/ folder.
- All the files in the /comments/ folder.
- All the correspondingly-named .php files in the root folder.
- /css/stylesheet.css and /css/extra.css
- All the files in the /img/ folder.
It is advisable not to open any backup .txt files before they are uploaded again. Text files created on the website may be Unix files and on your own computer may be Windows files. Line endings for instance may be treated differently from one platform to another. If the backup text files are never opened except on the website, there should be no issues of incompatibility — although I have only encountered this when using a Unix-based backup file on a different Windows server (new empty lines were created above every original new line).
If a backup .txt file is opened on your own computer (in a text editor such as Window Notepad) and you intend to paste the text into a new page on la.plume micro CMS it is better to save it locally as a new file. The text can then be safely copied and pasted without any incompatibility issues.
Using backups to start again from scratch
(1) Create a brand new installation of la.plume micro CMS.
(2) Upload all the backup files to their respective folders.
(3) In Admin / Setup, Submit setup.
Admin / Backup backs up everything required. It can also back up all the images. If for some reason only the .txt files are backed up, the original pages can be restored by pasting the text into new pages and giving the page title the same name as the text file.