The only requirement for your own backup policy is that it finds the files you want to back up and skips those that you do not want to back up. It is no different than any policy that you would use with the GPFS policy engine.
Fred
_______________________________________________________
Fred Stock | Spectrum Scale Development Advocacy | 720-430-8821
[email protected]
----- Original message -----
From: "T.A. Yeep" <[email protected]>
Sent by: [email protected]
To: gpfsug main discussion list <[email protected]>
Cc:
Subject: [EXTERNAL] Re: [gpfsug-discuss] mmbackup with own policy
Date: Wed, Jun 23, 2021 7:08 AM
Hi Dr. Martin,You can refer to the Administrator Guide > Chapter 30 > Policies for automating file management, or access via the link below. If you downloaded a PDF, it starts with page 487.There a quite a number of examples in that chapter too which can help you establish a good understanding of how to write one yourself.On Wed, Jun 23, 2021 at 6:10 PM Ulrich Sibiller <[email protected]> wrote:Hallo,
mmbackup offers -P to specify an own policy. Unfortunately I cannot seem to find documentation how
that policy has to look like.
I mean, if I grab the policy generated automatically by mmbackup it looks like this:
---------------------------------------------------------
/* Auto-generated GPFS policy rules file
* Generated on Sat May 29 15:10:46 2021
*/
/* Server rules for backup server 1
*** back5_2 ***
*/
RULE EXTERNAL LIST 'mmbackup.1.back5_2' EXEC '/net/gpfso/fs1/.mmbackupCfg/BAexecScript.gpfsofs1'
OPTS '"/net/gpfso/fs1/.mmbackupShadow.1.back5_2.filesys.update" "-servername=back5_2"
"-auditlogname=/net/gpfso/fs1/mmbackup.audit.gpfsofs1.back5_2" "NONE"'
RULE 'BackupRule' LIST 'mmbackup.1.back5_2' DIRECTORIES_PLUS
SHOW(VARCHAR(MODIFICATION_TIME) || ' ' || VARCHAR(CHANGE_TIME) || ' ' ||
VARCHAR(FILE_SIZE) || ' ' || VARCHAR(FILESET_NAME) ||
' ' || 'resdnt' )
WHERE
(
NOT
( (PATH_NAME LIKE '/%/.mmbackup%') OR
(PATH_NAME LIKE '/%/.mmLockDir' AND MODE LIKE 'd%') OR
(PATH_NAME LIKE '/%/.mmLockDir/%') OR
(MODE LIKE 's%')
)
)
AND
(MISC_ATTRIBUTES LIKE '%u%')
AND
...
---------------------------------------------------------
If I want use an own policy what of all that is required for mmbackup to find the information it needs?
Uli
--
Science + Computing AG
Vorstandsvorsitzender/Chairman of the board of management:
Dr. Martin Matzke
Vorstand/Board of Management:
Matthias Schempp, Sabine Hohenstein
Vorsitzender des Aufsichtsrats/
Chairman of the Supervisory Board:
Philippe Miltin
Aufsichtsrat/Supervisory Board:
Martin Wibbe, Ursula Morgenstern
Sitz/Registered Office: Tuebingen
Registergericht/Registration Court: Stuttgart
Registernummer/Commercial Register No.: HRB 382196
_______________________________________________
gpfsug-discuss mailing list
gpfsug-discuss at spectrumscale.org
http://gpfsug.org/mailman/listinfo/gpfsug-discuss--Best regardsT.A. Yeep
_______________________________________________
gpfsug-discuss mailing list
gpfsug-discuss at spectrumscale.org
http://gpfsug.org/mailman/listinfo/gpfsug-discuss
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
