cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
518
Views
5
Helpful
1
Replies

MPE backup

sindan
Level 1
Level 1

 Hi, running low on space on a particular volume on MPE server and thinking to reduce the backup retention from 4 days to 3 days. Any idea how to do that?

 

[root@mpe compressed_backup]# du -skh *
358M    tape_2014-08-25-23-00-02-Level-0.gz
276K    tape_2014-08-26-01-00-03-Level-1.gz
988K    tape_2014-08-26-04-00-02-Level-2.gz
1.6M    tape_2014-08-26-08-00-03-Level-2.gz
2.2M    tape_2014-08-26-12-00-03-Level-2.gz
2.8M    tape_2014-08-26-16-00-02-Level-2.gz
3.4M    tape_2014-08-26-20-00-02-Level-2.gz
4.2M    tape_2014-08-27-01-00-02-Level-1.gz
996K    tape_2014-08-27-04-00-03-Level-2.gz
1.5M    tape_2014-08-27-08-00-03-Level-2.gz
2.1M    tape_2014-08-27-12-00-04-Level-2.gz
2.8M    tape_2014-08-27-16-00-03-Level-2.gz
3.4M    tape_2014-08-27-20-00-04-Level-2.gz
7.3M    tape_2014-08-28-01-00-03-Level-1.gz
988K    tape_2014-08-28-04-00-03-Level-2.gz
1.5M    tape_2014-08-28-08-00-03-Level-2.gz
2.1M    tape_2014-08-28-12-00-04-Level-2.gz
2.8M    tape_2014-08-28-16-00-05-Level-2.gz
3.5M    tape_2014-08-28-20-00-04-Level-2.gz
359M    tape_2014-08-28-23-00-02-Level-0.gz
280K    tape_2014-08-29-01-00-03-Level-1.gz
1016K   tape_2014-08-29-04-00-02-Level-2.gz
1.5M    tape_2014-08-29-08-00-02-Level-2.gz
2.1M    tape_2014-08-29-12-00-02-Level-2.gz
2.7M    tape_2014-08-29-16-00-02-Level-2.gz
3.3M    tape_2014-08-29-20-00-03-Level-2.gz

Thanks,

1 Accepted Solution

Accepted Solutions

dpetrovi
Cisco Employee
Cisco Employee

Hi,

Backup retention is set to 7 days. At one time, you always have 2x Level 0 backups which are being collected every 4 days, while in between you are getting Level 1 and Level 2 backups.

There is no supported way of changing this time. This is configured in a specific file, but you will have to take responsibility of making those changes and any potential consequences. The product is already End of Support, so you won't be able to reach out to TAC if you hit any issues.

 

Keep in mind that if you have disk space issues, there are different ways to approach freeing up disk space. If you haven't done so already, please, take a look at this article first and clean disk space. You can also check this TechZone post as well.

If nothing here results in increase of disk space, you can proceed with editing the config file, but again, I don't think that is a good idea and it is definitely not supported procedure.

 

1. SSH to MPE server
2. Log in as ‘mpxadmin’
3. Change to ‘root’
    $ su
    Enter ‘root’ password
4. Browse to this location:
    # cd /opt/cisco/meetingplace_express/database/db-maintenance/
5. Backup the existing settings file
    # cp settings settings.old
6. Edit the settings file to set backup expiration:
    # vi settings
 
    This will open a file in VI editor, and the content of the file looks like this:
 
    log_folder=$MP_DATABASE/db-maintenance/logs
    log_file_name=$log_folder/db-maintenance.log
 
    backup_expiration=7
 
    backup_location=$MP_BACKUP_DIR/compressed_backup
 
 
    a) Scroll down to backup_expiration line, and press ‘i’ to enter the INSERT mode
    b) Once in INSERT mode, move the cursor to the right of ‘=’ sign and use Delete key to delete the entry “7”, and then type the desired backup retention period
    c) Press ESC key to exit INSERT mode
    d) Type the following to save the changes and exit VI client:
        :wq!
 
7. Now that you edited the file, just verify the changes were saved successfully:
    # cat settings
 
 

You may need to delete the older files manually at first, but after that I believe Backup process should automatically purge backup files older than 4 or whatever number of days you specified.

 

I hope this helps.

 

-Dejan

View solution in original post

1 Reply 1

dpetrovi
Cisco Employee
Cisco Employee

Hi,

Backup retention is set to 7 days. At one time, you always have 2x Level 0 backups which are being collected every 4 days, while in between you are getting Level 1 and Level 2 backups.

There is no supported way of changing this time. This is configured in a specific file, but you will have to take responsibility of making those changes and any potential consequences. The product is already End of Support, so you won't be able to reach out to TAC if you hit any issues.

 

Keep in mind that if you have disk space issues, there are different ways to approach freeing up disk space. If you haven't done so already, please, take a look at this article first and clean disk space. You can also check this TechZone post as well.

If nothing here results in increase of disk space, you can proceed with editing the config file, but again, I don't think that is a good idea and it is definitely not supported procedure.

 

1. SSH to MPE server
2. Log in as ‘mpxadmin’
3. Change to ‘root’
    $ su
    Enter ‘root’ password
4. Browse to this location:
    # cd /opt/cisco/meetingplace_express/database/db-maintenance/
5. Backup the existing settings file
    # cp settings settings.old
6. Edit the settings file to set backup expiration:
    # vi settings
 
    This will open a file in VI editor, and the content of the file looks like this:
 
    log_folder=$MP_DATABASE/db-maintenance/logs
    log_file_name=$log_folder/db-maintenance.log
 
    backup_expiration=7
 
    backup_location=$MP_BACKUP_DIR/compressed_backup
 
 
    a) Scroll down to backup_expiration line, and press ‘i’ to enter the INSERT mode
    b) Once in INSERT mode, move the cursor to the right of ‘=’ sign and use Delete key to delete the entry “7”, and then type the desired backup retention period
    c) Press ESC key to exit INSERT mode
    d) Type the following to save the changes and exit VI client:
        :wq!
 
7. Now that you edited the file, just verify the changes were saved successfully:
    # cat settings
 
 

You may need to delete the older files manually at first, but after that I believe Backup process should automatically purge backup files older than 4 or whatever number of days you specified.

 

I hope this helps.

 

-Dejan