Thursday, June 14, 2012

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

No comments:

Post a Comment