Backup mit backup.pl und alte Backups

Hilfe zu Znuny Problemen aller Art
Locked
wurzel
Znuny guru
Posts: 3274
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Backup mit backup.pl und alte Backups

Post by wurzel »

Hallo,

Wir machen täglich ein Backup vom OTRS mit Crontab

/opt/otrs/scripts/backup.pl -d /tmp/backup

der /tmp/backup wird jetzt immer voller und voller.

Gibt es eine Möglichkeit alle Backups älter wie 14 Tage zu löschen?

Wie löst ihr das? Danke für Info vorab.

viele Grüße
Flo
OTRS 2025 SILVER (Prod)
OTRS 2025 auf Debian 12 (Test)
Znuny 7.x latest version testing auf Debian 12

-- Ich beantworte keine Forums-Fragen PN - No PN please

I won't answer to unfriendly users any more. A greeting and regards are just polite.
Wolfgangf
Znuny ninja
Posts: 1029
Joined: 13 Apr 2009, 12:26
Znuny Version: 6.0.13
Real Name: Wolfgang Fürtbauer
Company: PBS Logitek GmbH
Location: Pinsdorf

Re: Backup mit backup.pl und alte Backups

Post by Wolfgangf »

Code: Select all

find /tmp/backup/  -mtime +14 -exec rm {} \;
so oder so ähnlich zum Beispiel
Produktiv:
OTRS 6.0.13/ ITSM 6.0.13
OS: SUSE Linux (SLES 12, Leap), MySql 5.5.x, 5.6.x
Windows 2012 AD Integration (agents and customers), Nagios integration (incidents, CMDB), Survey, TimeAccounting
wurzel
Znuny guru
Posts: 3274
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: Backup mit backup.pl und alte Backups

Post by wurzel »

Hi,

OK, ich dacht, da wär im backup.pl 'ne Option. Aber so gehts auch. Danke für den Denkanstoß :)

Flo
OTRS 2025 SILVER (Prod)
OTRS 2025 auf Debian 12 (Test)
Znuny 7.x latest version testing auf Debian 12

-- Ich beantworte keine Forums-Fragen PN - No PN please

I won't answer to unfriendly users any more. A greeting and regards are just polite.
heinermueller
Znuny newbie
Posts: 2
Joined: 18 Nov 2011, 18:00
Znuny Version: 3.0.11

Re: Backup mit backup.pl und alte Backups

Post by heinermueller »

Es gibt zwar die Option "-r", welche aber nicht funktioniert. Und das schon seit Jahren wie mir Google verraten hat.
Locked