Skip to main content

CLI command to schedule backup on Secure platform

Just some handy command guide on scheduling the checkpoint backup from the CLI

backup [-h] [-d] [-l] [--purge DAYS] [--sched [on hh:mm <-m DayOfMonth> | <-w DaysOfWeek>] | off] [--tftp [-path ] []] [--scp [-path ] []] [--ftp [-path ] []] [--file [-path ] []]

where:
-d Show debug messages
-l, --logs Back up log files        
-h, --help Show this help information        
-t, --tftp Transfer backup package to TFTP server
-s, --scp Transfer backup package to SCP server        
-v, --ftp Transfer backup package to FTP server        
-f, --file Specify local backup package filename        
-e, --sched Configure scheduled backup operation        
-p, --purge Purge local backup packages older than DAYS

example:

backup -e on 00:00 -w 1 2 3 4 5 6 7 -v (ip address of FTP server) username password -path (path) (filename)

This command will schedule at backup at 00:00 from Monday to Sunday to a FTP server.
Directory path to check on the schedule backup config file :

/var/CPBackups/conf/backup_sched.conf

example of config file
STORAGE=FTP
FILE_NAME=/xxxx/xxxxx
TFTP=
FTP=xx.xx.xx.xx
FTP_USER_NAME=ftpuser
FTP_PASSWORD=683b2a62657701243f
SCP= SCP_USER_NAME=ftpuser
SCP_PASSWORD=683b2a62657701243f
SCHEDULER=ENABLED BACKUP_
LOGFILES=NO
START_HOUR=0
START_MINUTE=0
DAILY=FALSE
PER_DAYS=1
LAST_SUCCEEDED_BACKUP=1339336801 LAST_SUCCEEDED_BACKUP_LOCAL=1339372801
WEEK_DAYS=1234567

Comments

Popular posts from this blog

Install Google Playstore on Pendo Pad 4.0 and rooting the device.

Coles selling the Pendo 7" Android Pad running Ice Cream Sandwich 4.03, however by default it does not come with Google Play Store. Rather it has the China "store" GetJar, which only have limited Apps available. In order to get the  Google Play store install on device. Firstly you have to root the device to gain root access. 1. Download unlockroot from : www.unlockroot.com/ 2. Connect the device to a windows PC, install and run the program. Make sure window machine has the necessary driver to access android pad.  If device driver is not available. Download and install the driver from: http://developer.android.com/tools/extras/oem-usb.html Make sure set the android device to USB Debugging mode to allow the unlockroot to root the device: Enable the USB debugging mode from : Setting -> Developer Options -> USB debugging Click on Root to root the device. After that, install the google play store by downloading it and transfer it to

Linux command to install software for various Distro

Ubuntu (*buntu, Mint linux) Apt-get install apt-get update apt-get remove apt-get dist-upgrade apt-get purge Fedora/RHEL/CentOS yum install yum update yum remove Opensuse yast2 --install yast2 --remove zypper update Freebsd  pkg_add pkg_delete Gentoo emerge package # Install emerge -C package # Remove a package emerge -s keyword # Search for packages (package names only) emerge -u package # update the package Arch pacman -U package.pkg.tar.xz # Local package install pacman -Syy # Refresh package databases pacman -Syu # Update installed packages pacman -S package # Install package pacman -R package # Remove package