The plugin allows to backup the application code and data.
|You can see an enabled plugin operation in Demo System.|
Enable the plugin via server config.
backup:enable=1 # Setting to set up maximum number of backups stored #backup:cleanup.candidate.count.more.than=3 # Setting to set up maximum number of backups with DB stored #backup:cleanup.candidate.db.count.more.than=3
All commands are executed by root Said that, in order for all related file system operations to be successful, only SSH access to remote server is sufficient.
Client PC has to have sshfs client installed:
apt install sshfs
Create a mount directory:
Mount SSHFS using the command below:
sshfs [user@]host:[dir] mountpoint [options]
sshfs firstname.lastname@example.org:/opt/BGERP/backup /mnt/backup
Use the following command to display remote filesystem mount point:
Now you can use this directory to exchange files with remote server. If there is a need for other users to access this directory, use allow_other option. Option will be operational only if
/etc/fuse.conf also has user_allow_other option.
Mounting SSHFS with allow_other option:
sshfs -o allow_other email@example.com:/opt/BGERP/backup /mnt/backup
Unmount a file system:
First, create SSH-keypair, where one key will be private (
id_rsa) and another one - public (
In order to copy public key into a remote server (to authorize SSH client), use the following command:
ssh-copy-id -i ~/.ssh/id_dsa.pub firstname.lastname@example.org
Use the following command to test SSH connection to remote server using a private SSH key you’ve created earlier:
|When using Windows, you an use PuTTY or KiTTY to generate SSH keys.|
After configuring authorization on remote server (see above), you can start mounting remote file system into your local folder using the following command:
sshfs email@example.com:/opt/bgerp/backup /mnt/backup -o allow_other,default_permissions,IdentityFile=~/.ssh/id_rsa
Backup tool is available in Administration / Backup menu. There is content mode switch available.
You can use drop-box to create backups with or without DB content.
Outdated backups can be removed using a button in the top-left corner of table. Number of backups preserved by the system is configured via configured.
Buttons in right table column allow restoring from backups. The application is automatically restarted after this operation.