Backup

Backup

When performing a manual update in Scriptcase or making any changes that affect the tool, it is recommended that the user save certain files through a Backup.

Info
A Backup is necessary to avoid the loss of Projects and Settings.

There are two ways to perform a Backup:

      Method 1: Through Scriptcase Settings
      Method 2: By copying the file "nm_scriptcase.db" and necessary folders.
Warning
The app folder is not a valid backup of your projects.



1 - Through Scriptcase Settings

To perform a backup using Scriptcase settings, access your development environment:

      1.1 – First, go to the "Settings" tab by navigating to Options > Settings:

            

      1.2 – Then, click the "Backup" option, give it a name, and click "Process", as shown in the image below:

            

      1.3 – After processing the file, a "Download" button will appear. Click it to download your Backup file

            

      1.4 – Finally, after clicking the button, a .ZIP file will be generated containing the Backup files



2 - By copying the file "nm_scriptcase.db" and directories from the devel/conf folder
To perform the backup this way, you’ll need to use the system file manager or terminal:

Notes
The examples below are based on Ubuntu Linux, where the main Scriptcase folder is located at: /var/www/html/scriptcase/
      2.1 - Using the File Manager

            2.1.1 – Open your file manager and navigate to the directory where your main Scriptcase folder is located.
           
            2.1.2 – Access the folder devel/conf and save a copy of the following directories:
                  1. usr
                  2. upd
                  3. sys
                  4. grp
                  5. icons
                  6. font
                  7. lang
                  

            2.1.3 – Now, inside the folder devel/conf/scriptcase, save a copy of the file named nm_scriptcase.db.

      2.2 - Using the Terminal
            2.2.1 – First, open the terminal using the keyboard shortcut Ctrl+Alt+T.

            2.2.2 – In the terminal, run the following commands:
                  rsync -av /absolutePath/scriptcase/devel/conf/scriptcase/nm_scriptcase.db /destinyPath/
                  use example: rsync -av /var/www/html/scriptcase/devel/conf/scriptcase/nm_scriptcae.db /var/www/html/

                  rsync -av --exclude='scriptcase' /absolutePath/scriptcase/devel/conf/ /destinyPath/
                  use example: rsync -av --exclude='scriptcase' /var/www/html/scriptcase/devel/conf/ /var/www/html/
            
            2.2.3 – After that, the nm_scriptcase.db file and necessary folders will be copied to the destination path.
    • Related Articles

    • Manual Backup

      How to make a Manual backup of scriptcase ? The app folder is not a backup for your projects 1) First copy the scriptcase database, below are the paths to the file, and replaces in the respective directory of the new installation: You can find this ...
    • Restore Backup

      To restore the backup within the SC, the following must be done: Inside Options > Settings: Then in Settings > Restore: Then in “Restore ZIP”:
    • The size of the backup file is larger than supported by PHP

      If some users encounter this problem, perform the following changes below: In php.ini, there is the upload_max_filesize and post_max_size directives where both are policies that determine the maximum size of files that are uploaded to the server. ...
    • Import and Export applications on Scriptcase

      When working with projects WEB one of the most important items is the backup, an effective policy that can avoid many problems. No project is free of problems or errors, and so it is important to have a backup always available if you need to retrieve ...
    • Parallel Installation of Scriptcase

      NEVER DELETE THE DIRECTORY WHERE YOU INSTALLED YOUR SCRIPTCASE! The procedures in this tutorial only explain how to install the Scriptcase manually. We recommend creating a backup of your Scriptcase before proceeding with the update. You can perform ...