@japofc/baileys - v2.4.7
    Preparing search index...

    Function backupAuthStateRotating

    • Timestamped, password-encrypted backups with automatic pruning.

      Parameters

      • src: string
      • outDir: string
      • opts: { keep?: number; password: string; prefix?: string }
        • Optionalkeep?: number

          Backups to keep. Default 5.

        • password: string
        • Optionalprefix?: string

          File name prefix. Default 'auth-backup'.

      Returns Promise<
          {
              createdAt: string;
              files: number;
              kept: number;
              outFile: string;
              removed: string[];
          },
      >