visiosoft/backup-module

There is no license information available for the latest version (1.0.28) of this package.

Installs: 31

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:streams-addon

1.0.28 2024-06-24 12:37 UTC

README

What to do before backing up sites on the active server.

  • You need to connect the StorageBox before activating it from the settings.

      cat ~/.ssh/id_rsa.pub | ssh -p23 uXXXXX@uXXXXX.your-storagebox.de install-ssh-key
    
  • You can then turn on the site backup setting in the settings so that the backup process is performed automatically on a daily basis.

Pre-requisites Before Adding Server/Jobs

  • Install the relevant PostgreSQL version inside the server you connected for PostgreSQL backups;

    • sudo apt-get install -y postgresql-client-14
      
  • Configure the database auth information using .pgpass or .my.cnf. This configuration allows you to take backups without a password.

    • For MySQL (name your file the same as the relevant job slug):

      echo "[client]" > ~/.{database_name}.cnf
      echo "user=zoho_zoho" >> ~/.{database_name}.cnf
      echo "password=your_password" >> ~/.{database_name}.cnf
      chmod 600 ~/.{database_name}.cnf
      
    • For PostgreSQL:

      echo "{host}:{port}:{database_name}:{username}:{password}" >> ~/.pgpass && chmod 600 ~/.pgpass
      
  • Granting access to StorageBox. This access allows password-free transfers to your StorageBox.

    • cat ~/.ssh/id_rsa.pub | ssh -p23 uXXXXX@uXXXXX.your-storagebox.de install-ssh-key