def rule(event):
    if any(
        [
            any(
                [
                    all(
                        [
                            "--password-file" in event.deep_get("CommandLine", default=""),
                            "init" in event.deep_get("CommandLine", default=""),
                            " -r " in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                    all(
                        [
                            "--use-fs-snapshot" in event.deep_get("CommandLine", default=""),
                            "backup" in event.deep_get("CommandLine", default=""),
                            " -r " in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                ]
            ),
            all(
                [
                    any(
                        [
                            "sftp:" in event.deep_get("CommandLine", default=""),
                            "rest:http" in event.deep_get("CommandLine", default=""),
                            "s3:s3." in event.deep_get("CommandLine", default=""),
                            "s3.http" in event.deep_get("CommandLine", default=""),
                            "azure:" in event.deep_get("CommandLine", default=""),
                            " gs:" in event.deep_get("CommandLine", default=""),
                            "rclone:" in event.deep_get("CommandLine", default=""),
                            "swift:" in event.deep_get("CommandLine", default=""),
                            " b2:" in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                    " init " in event.deep_get("CommandLine", default=""),
                    " -r " in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
