Maintenance Commands

The maintenance commands manage Cloudpath database operations, including importing data, exporting data, and creating backups.

Table 1. maintenance commands

Command

Description

Parameters and Examples

maintenance backup create

Create a backup file (zipped tar.gz) of the Cloudpath database and SCP it to a remote server.

[IP address or hostname of the remote server] [Port number] [Remote username] [Pathto file location on the remote system]

maintenance backup create 1 72.16.4.20 22 username/home/db/file
maintenance backup restore mount

Restore a backup from a locally mounted drive.

No parameters.

maintenance backup restore mount
maintenance backup restore scp

Restore a backup file from a remote server via SCP.

[IP address or hostname of the remote server] [Port number] [Remote username] [Pathto file location on the remote system]

maintenance backup restore scp 172.16.4.20 22 username /home/db/file
maintenance backup schedule mount

Creates a recurring backup via a locally mounted drive. Note the different syntax examples for cifs and nfs drive types

.

[Username for remote drive] [Path to mount] [Path within mount to backup directory] [Type of drive (cifs or nfs)] [true to merge changes into full backup, false to not merge]

Syntax for cifs:

# maintenance backup schedule mount admin \\\\\\172.128.4.20\\backu p\\test servername-cifs cifs true 

Syntax for nfs:

# maintenance backup schedule mount '' 172.128.4.20:/backup/ servername-nfs nfs true 
maintenance backup schedule scp

Creates a recurring backup via SCP to a remote server

[IP address or hostname of the remote server] [Remote port number] [Remote username] [Path to the remote system to place the backup file] [Pattern for the cron schedule]

maintenance backup schedule scp 172.16.4.20 22 username /path/to /file 0 0 * * 3 

(Note the space between minute, hour, day, month schedule parameters.) For more information about cron schedule parameters, refer to Linux documentation.

maintenance backup unschedule mount

Removes the previously set up cron job for copying the system database to a remote server via mounted (CIFS) drive.

No parameters.

maintenance backup unschedule mount
maintenance backup unschedule scp

Removes the previously set up cron job for copying the system database to a remote server via SCP.

No parameters.

maintenance backup unschedule scp
maintenance cannibalize

Extracts the configuration from a remote system and overwrites this system.

The new system must have the same network settings as the old system, from which the database was exported.

Cloudpath uses the SSH port configured in the new system to transfer the database files.

IP address or hostname of the remote server]

maintenance cannibalize 172.16.4.20