On 6/23/21 1:31 PM, Frederick Stock wrote:
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.
Have you ever sucessfully done this? Let me explain again: With an own policy I know what I want to see in the output and for an arbitrary external rule I know where the called script resides and what parameters it expects. mmbackup however creates a helper script (BAexecScript.<filesys>) on the fly and calls that from its autogenerated policy via the external rule line. I assume I need the BAexecScript to make mmbackup behave like it should. Is this wrong? Update: after playing around for quite some time it looks the rule must have a special format, as shown below. Replace the placeholders like this: <backupserver> the name of the Backupserver as defined in dsm.sys and on the mmbackup command line via --tsm-servers <fsname> as shown in mmlsfs all_local (without /dev/) <mountpoint> as shown in mmlsfs -T -------------------------------------------------------------------------------------------- RULE EXTERNAL LIST 'mmbackup.1.<backupserver>' EXEC '<mountpoint>/.mmbackupCfg/BAexecScript.<fsname>' OPTS '"<mountpoint>/.mmbackupShadow.1.<backupserver>.filesys.update" "-servername=<backupserver>" "-auditlogname=<mountpoint>/mmbackup.audit.<fsname>.<backupserver>" "NONE"' RULE 'BackupRule' LIST 'mmbackup.1.<backupserver>' DIRECTORIES_PLUS SHOW(VARCHAR(MODIFICATION_TIME) || ' ' || VARCHAR(CHANGE_TIME) || ' ' || VARCHAR(FILE_SIZE) || ' ' || VARCHAR(FILESET_NAME) || ' ' || 'resdnt' ) WHERE ( KB_ALLOCATED > 1024 ) -------------------------------------------------------------------------------------------- Call it like this: /usr/lpp/mmfs/bin/mmbackup <mountpoint> --tsm-servers <backupserver> -P <policyfile> As this non-trivial it should be mentioned in the documentation! Uli -- Dipl.-Inf. Ulrich Sibiller science + computing ag System Administration Hagellocher Weg 73 Hotline +49 7071 9457 681 72070 Tuebingen, Germany https://atos.net/de/deutschland/sc -- 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
