# SUSE manager DB backup failing

**URL:** <https://forums.suse.com/t/suse-manager-db-backup-failing/34547>\
**Category:** SUSE Multi Linux Manager\
**Created:** [November 14, 2019, 5:41pm UTC](https://forums.suse.com/t/suse-manager-db-backup-failing/34547 "2019-11-14T17:41:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![julianrogan](https://avatars.discourse-cdn.com/v4/letter/j/3be4f8/32.png) [@julianrogan](https://forums.suse.com/u/julianrogan)\
**Post date:** [November 14, 2019, 5:41pm UTC](https://forums.suse.com/t/suse-manager-db-backup-failing/34547/1 "2019-11-14T17:41:04Z")

</div>

I have a prod and dev susemager. On the dev backup is working. On the prod when I run the command:

mdba backup-hot --enable=on --backup-dir=/var/spacewalk/db-backup  
Backend error:  
You’ve specified “/var/spacewalk/db-backup” as a destination,  
but your backup is already in “/var/spacewalk/db\_backup” directory.  
In order to specify a new target directory,  
you must purge (or disable) current backup.

smdba backup-status  
Backup status: ON  
Destination: /var/spacewalk/db\_backup  
Last transaction: Wed Oct 30 03:04:40 2019  
Space available: 95%

ls -l /var/spacewalk/db\_backup  
total 2153168  
-rw-r–r-- 1 postgres postgres 2204841389 Oct 30 03:04 base.tar.gz  
drwx------ 2 postgres postgres 6 Oct 30 03:04 tmp

On the dev SUSE Manager I have run several backups with the same command.

The man page say run smdba backup-purge but that option is not valid in the current version

smdba  
SUSE Manager Database Control. Version 1.6.4  
Copyright (c) 2012-2019 by SUSE Linux LLC

Available commands:  
backup-hot Enable continuous archiving backup  
backup-restore Restore the SUSE Manager Database from backup.  
backup-status Show backup status.  
db-start Start the SUSE Manager Database.  
db-status Show database status.  
db-stop Stop the SUSE Manager Database.  
space-overview Show database space report.  
space-reclaim Free disk space from unused object in tables and indexes.  
space-tables Show space report for each table.  
system-check Common backend healthcheck.

To know a complete description of each command, use parameter ‘help’.  
Usage:  
smdba help

Andy advice?

---

<div class="post-metadata">

**Author:** ![julianrogan](https://avatars.discourse-cdn.com/v4/letter/j/3be4f8/32.png) [@julianrogan](https://forums.suse.com/u/julianrogan)\
**Post date:** [November 16, 2019, 1:27pm UTC](https://forums.suse.com/t/suse-manager-db-backup-failing/34547/2 "2019-11-16T13:27:16Z")

</div>

after all that it was a simple typo. /var/spacewalk/db\_backup — the underscore should have been a dash in the directory name
