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.